ROS in MATLAB
Access ROS networks and messages using 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
message use 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.
Functions
Blocks
Topics
ROS Publishers and Subscribers
- Work with Basic ROS Messages
Messages are the primary container for exchanging data in ROS. - Built-In Message Support
List of supported ROS message types in MATLAB. - Exchange Data with ROS Publishers and Subscribers
The primary mechanism for ROS nodes to exchange data is sending and receiving messages. - Work with Specialized ROS Messages
Some commonly used ROS messages store data in a format that requires some transformation before it can be used for further processing. - Publish Variable-Length Nested ROS Messages in MATLAB
This example shows how to work with complex ROS messages in MATLAB, such as messages with nested submessages and variable-length arrays. - Improve Performance of ROS Using Message Structures
This example demonstrates the use of ROS message structures, and their benefits and differences from message objects.
ROS Services And Actions
- Call and Provide ROS Services
ROS supports two main communication mechanisms: topics and services. - ROS Actions Overview
ROS action workflow and communication protocols - Move a Turtlebot Robot Using ROS Actions
This example shows how to use the/turtlebot_move
action with a Turtlebot robot.