how to generate the custom message
이전 댓글 표시
I am trying to creat a message for ros in maltab.
the .msg filein the folder (/home/bikebot/catkin_ws/src/kinova-ros-master/kinova_msgs/msg) and under the folder there are multiple .msg files.
then I used the funciton rosgenmsg and got followign error.
folderpath ='/home/bikebot/catkin_ws/src/kinova-ros-master/kinova_msgs'
rosgenmsg(folderpath)
Identifying message files in folder '/home/bikebot/catkin_ws/src/kinova-ros-master/kinova_msgs'..Done.
Validating message files in folder '/home/bikebot/catkin_ws/src/kinova-ros-master/kinova_msgs'..Done.
[0/0] Generating MATLAB interfaces for custom message packages... Done.
Error using rosgenmsg (line 332)
No packages with '.msg' files found under
/home/bikebot/catkin_ws/src/kinova-ros-master/kinova_msgs. Each message package directory must
contain a directory named 'msg' that then contains '.msg' files.
Hope someone can help with this.
채택된 답변
추가 답변 (1개)
can ren
2021년 5월 25일
0 개 추천
Did you encountered the following problems?

댓글 수: 1
Cam Salzberger
2021년 5월 25일
편집: Cam Salzberger
2021년 5월 25일
For up to and including R2020b, ROS Toolbox only supports Visual Studio 2017 for custom message generation on Windows. For R2021a, it also supports Visual Studio 2019. Assuming you are using an earlier release of MATLAB, install VS2017 and use mex -setup to point to it. Or update to R2021a.
-Cam
카테고리
도움말 센터 및 File Exchange에서 ROS Toolbox에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!