ROS Network Access in MATLAB
ROS shares information using messages. Messages are a
simple data structure for sharing data. To receive or subscribe to a message, use
rossubscriber. To send or publish a
rospublisher. See Exchange Data with ROS Publishers and Subscribers for more
information on sending messages.
ROS services and actions enable users to perform tasks. Services use request-response communication to gather information and trigger callback functions in the ROS network. Actions can be used to trigger tasks or goals and receive feedback during operation of these tasks.
ROS Publisher and Subscriber
|Retrieve information about ROS actions (Since R2019b)|
|Create ROS Action Server (Since R2022a)|
|Create new action feedback message (Since R2022a)|
|Check if a goal has been preempted (Since R2022a)|
|Send feedback to action client during goal execution (Since R2022a)|
|Return function handle for ROS action server callback (Since R2022a)|
|Create ROS action client (Since R2019b)|
|Cancel all goals on action server (Since R2019b)|
|Cancel last goal sent by client (Since R2019b)|
|Send goal message to action server (Since R2019b)|
|Send goal message and wait for result (Since R2019b)|
|Wait for action server to start (Since R2019b)|
|Call ROS or ROS 2 service server and receive a response (Since R2019b)|
|Determine if ROS or ROS 2 service server is available (Since R2021b)|
|Retrieve information about services in ROS network (Since R2019b)|
|Connect to ROS service server (Since R2019b)|
|Create ROS service server (Since R2019b)|
|Wait for ROS or ROS 2 service server to start (Since R2021b)|
ROS Rate Control
|Blank Message||Create blank message using specified message type (Since R2019b)|
|Current Time||Retrieve current ROS time or system time (Since R2019b)|
|Publish||Send messages to ROS network (Since R2019b)|
|Subscribe||Receive messages from ROS network (Since R2019b)|
|Call Service||Call service in ROS network (Since R2019b)|
ROS Publishers and Subscribers
- Work with Basic ROS Messages
Create, explore, and populate ROS messages in MATLAB, that are commonly encountered in robotics applications.
- Built-In Message Support
List of supported ROS message types in MATLAB.
- Exchange Data with ROS Publishers and Subscribers
Publish and subscribe to topics in a ROS network.
- Work with Specialized ROS Messages
Handle message types for laser scans, uncompressed and compressed images, point clouds, camera info, occupancy grid, and octomap messages.
- Publish Variable-Length Nested ROS Messages and Deploy as ROS Node Using MATLAB
Work with complex ROS messages in MATLAB, such as messages with nested submessages and variable-length arrays.
- Improve Performance of ROS Using Message Structures
Demonstrates the use of ROS message structures, and their benefits and differences from message objects.