- 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.
How can I use custom ROS messages with Robotics System Toolbox?
조회 수: 3 (최근 30일)
이전 댓글 표시
Gautam Vallabha
2015년 3월 11일
답변: Massimo Satler
2021년 5월 19일
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?
댓글 수: 0
채택된 답변
MathWorks Robotics and Autonomous Systems Team
2015년 3월 12일
Hi Gautam,
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:
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!
추가 답변 (1개)
Massimo Satler
2021년 5월 19일
Today it is officially supported. See here for more details:
https://www.mathworks.com/help/supportpkg/robotmanipulator/ug/customize-ros-messages.html?searchHighlight=Matlab%20custom%20message&s_tid=srchtitle
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Custom Message Support에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!