Cannot find a MATLAB message class for type geometry_msgs/Twist
이전 댓글 표시
Hello!
I follow the official steps to create custom ros messages and when I use " rosmsg list " to check it, my custom message is right here.
However, it didn't work when I use rosmessage('geometry_msgs/Twist'),
and it shows "Cannot find a MATLAB message class for type geometry_msgs/Twist".
Also, if I use the command " msginfo=rosmsg("show",'geometry_msgs/Twist') ",
it shows "Could not find definition of message type geometry_msgs/Twist. Check the spelling of the type, or use "rosmsg list" to retrieve a list of available message types."
답변 (1개)
鼎 钟
2022년 4월 20일
0 개 추천
I have the same question with you. But finally, I find the problem is just because your path contains chinese.
You can try command 'javaclasspath' to check if the path of your custom ros message contains strange characters. Maybe it's java's fault.
카테고리
도움말 센터 및 File Exchange에서 ROS 2 Network Access in MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!