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.
Messages are the primary container for exchanging data in ROS.
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.
Work with Basic ROS 2 Messages
ROS messages are the primary container for exchanging data in ROS 2.
Exchange Data with ROS 2 Publishers and Subscribers
The primary mechanism for ROS 2 nodes to exchange data is to send and receive messages.
Manage Quality of Service Policies in ROS 2
Quality of Service (QoS) policy options allow for changing the behavior of communication within a ROS 2 network.
Manage Quality of Service Policies in ROS 2 Application with TurtleBot
This example demonstrates best practices in managing Quality of Service (QoS) policies for an application using ROS 2.
Using ROS Bridge to Establish Communication Between ROS and ROS 2
ROS 2 is newer version of ROS with different architecture.