ROS Network Connection and Exploration
Connect to ROS to prototype robotics applications and access robotics hardware or
simulators over a ROS network. You can create your own ROS network using MATLAB® or connect to an existing ROS network. To set up a ROS network, start
by calling rosinit.
You can access transformations between coordinate systems as ROS topics and use them to transform data in MATLAB. For more information, see Access the tf Transformation Tree in ROS.
The rosrate
object helps control the timing of code execution.
Note
As of May 31, 2025, ROS 1 has reached end of life and is no longer officially supported. Migrating to ROS 2 is recommended to access the latest features and updates. For more information on equivalent ROS Toolbox features supporting network connection and exploration, see ROS 2 Network Connection and Exploration.
Functions
Objects
Blocks
| Blank Message | Create blank message using specified message type |
| Current Time | Retrieve current ROS time or system time |
| Set Parameter | Set values on ROS parameter server |
| Coordinate Transformation Conversion | Convert to a specified coordinate transformation representation |
Topics
- ROS Network Setup
Summary of ROS network setup and information required for connection.
- Execute Code Based on ROS Time
Using a
rosrateobject allows you to control the rate of your code execution based on the ROS Time/clocktopic.





