Main Content
ROS Network Access 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
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.
ROS Services And Actions
- Call and Provide ROS Services
Set up service servers to advertise a service to the ROS network. - 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.