how to generate the custom message

4 views (last 30 days)
Feng Han
Feng Han on 14 Feb 2021
Commented: Feng Hanon 25 May 2021
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'
罗斯genmsg(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。每个消息包目录必须
contain a directory named 'msg' that then contains '.msg' files.
希望有人可以为此提供帮助。

Accepted Answer

CAM SALZBERGER
CAM SALZBERGER on 16 Feb 2021
This is the same issue as 这里 . Please see that question and this one 有关更多文件夹结构详细信息。
-Cam
3 Comments
Feng Han
Feng Han on 25 May 2021
谢谢。I already solved this problem.

Sign in to comment.

More Answers (1)

can ren
can ren on 25 May 2021
Did you encountered the following problems?
1 Comment
CAM SALZBERGER
CAM SALZBERGER on 25 May 2021
对于及时包括R2020B,ROS工具箱仅支持Visual Studio 2017,用于Window金宝apps上的自定义消息。对于R2021A,它还支持Visual 金宝appStudio2019。如果您使用MATLAB的较早版本,请安装VS2017并使用MEX -setUp指向它。或更新到R2021A。
See here for the R2021A系统要求页面 .
-Cam

Sign in to comment.

下载188bet金宝搏

Community Treasure Hunt

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

开始狩猎!