Call service in ROS network
ROS Toolbox / ROS
The Call Service block takes a ROS service request message, sends it to the ROS service server, and waits for a response. Connect to a ROS network using rosinit
. A ROS server should be set up somewhere on the network before using this block. Check the available services on a ROS network using rosservice
. Use rossvcserver
to set up a service server in MATLAB®.
Specify the name for your ROS service and the service type in the block mask. If connected to a ROS network, you can select from a list of available services. You can create a blank service request or response message to populate with data using the Blank Message block.