Main Content
Call Service
Call service in ROS network
Libraries:
ROS Toolbox /
ROS
Description
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.
Examples
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2019b