ROS Toolbox provides an interface connecting MATLAB® and Simulink® with the Robot Operating System (ROS and ROS 2), enabling you to create a network of ROS nodes. The toolbox includes MATLAB functions and Simulink blocks to import, analyze, and play back ROS data recorded in rosbag files. You can also connect to a live ROS network to access ROS messages.
The toolbox lets you verify ROS nodes via desktop simulation and by connecting to external robot simulators such as Gazebo. ROS Toolbox supports C++ code generation (with MATLAB Coder™ and Simulink Coder™), enabling you to automatically generate ROS nodes from a Simulink model and deploy to simulated or physical hardware. Support for Simulink external mode lets you view messages and change parameters while your model is running on hardware.
Get Started:
ROS Network Connection
Connect to and explore ROS or ROS 2 networks. Use introspection to list available topics and types. View a detailed structure of ROS messages.
ROS Network Setup
Create and define your own ROS or ROS 2 network to communicate between different devices. Set up multiple ROS nodes to distribute tasks and information.
Publishers and Subscribers
Send and receive ROS or ROS 2 messages using a topic with publish-subscribe semantics.
Services and Actions
Use a client-server architecture to send requests, perform tasks, and get feedback in ROS applications.
Parameter Server
Use ROS parameter servers to store configuration options for multiple nodes and enable the dynamic reconfiguration of nodes.
ROS Log Files (rosbags)
Import rosbag files to filter, visualize, and analyze logged data.
Built-in Messages
Use a library of supported ROS message packages for your ROS applications.
Custom Messages
Add new message types for your ROS or ROS 2 applications using custom message support.
Node Generation
Generate C++ code for standalone applications that use ROS or ROS 2 functionality.