How can I use custom ROS messages with Robotics System Toolbox?

Gautam Vallabha · May 10, 2023 · 2.4K views
Question
I want to create a ROS message of type atlas_msgs/AtlasCommand, but rosmessage doesn't work with it. I get the following error:   >> rosmessage('atlas_msgs/AtlasCommand') Cannot find a MATLAB message class for type atlas_msgs/AtlasCommand. How do I use custom ROS messages that aren't included with Robotics System Toolbox?
Expert Answer
Profile picture of Kshitij Singh
Kshitij Singh PhD Expert
Answered Aug 22, 2026
You can add the support for custom ROS messages by installing the Robotics System Toolbox Interface for ROS Custom Messages . 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.
There are two ways to install this interface:
  • In MATLAB, call roboticsSupportPackages, select the "ROS Custom Messages" entry, and follow the installation instructions.
  • Go to the FileExchange entry for the custom message interface and follow the installation instructions listed there.
After the installation finishes, you can take a look at the documentation and see examples on how to use custom messages in MATLAB and Simulink.
 
You should be able to communicate with the ATLAS robot in no time!
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!