ROS Custom Message Support
You can create your own ROS custom messages and use them in MATLAB® and Simulink® with ROS networks to transmit information. You can also replace the built-in messages with new or custom definitions. To learn the requirements for generating custom messages, see ROS Custom Message Support.
For ROS 2, use
ros2genmsg with your custom message packages.
- ROS 2 Custom Message Support
Custom messages are user-defined messages that you can use to extend the set of message types currently supported in ROS 2.