ROS Toolbox interface for ROS Custom Messages

Use custom ROS message and service types in MATLAB and Simulink.
4.9K Downloads
Updated 16 Sep 2020

Editor's Note:

This support package is currently unable to download third-party software for MATLAB R2017a and earlier versions. For details and workaround, see this Bug Report.

MATLAB R2017b and later versions are unaffected.

Note: This support package is functional for R2017a to R2020a. Starting in R2020b, ROS custom message generation is directly supported from ROS Toolbox without this support package.
Using the ROS Custom Messages Interface, you can extend the set of ROS messages supported by Robotics System Toolbox. You can define your own custom ROS message and service types, and use them in MATLAB and Simulink to communicate with other nodes in the ROS network.
This Interface allows you to:
- Generate MATLAB interfaces for custom messages and services from ROS msg and srv descriptions
- Send and receive custom messages just like any other ROS message
- Interface with any ROS-enabled robot or simulator that uses custom messages
- Share generated custom message interfaces with other MATLAB users
To install the ROS Custom Messages Interface:
* You must have a version of MATLAB R2015a with ROS Toolbox already installed
* Download the submission (roscustommsg.mlpkginstall)
* Double-click on roscustommsg.mlpkginstall from either inside MATLAB or from your OS
* When the install process is finished, you can type "help rosgenmsg" on the MATLAB command-line to learn more about the custom message functionality. The documentation will open automatically after the install and can be accessed later through a shortcut.
For more information www.mathworks.com/ROS
MATLAB Release Compatibility
Created with R2015a
Compatible with R2015a to R2020b
Platform Compatibility
Windows macOS (Apple silicon) macOS (Intel) Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!