Updating ros messages for moveit!

9 ビュー (過去 30 日間)
Pouria Tajvar
Pouria Tajvar 2020 年 1 月 15 日
回答済み: Pouria Tajvar 2020 年 1 月 16 日
I have trouble updating ROS messages for the package moveit. rosgenmsg has worked well with other costum messages.
I get the error "Output argument "msgFolder" (and maybe others) not assigned during call to "ros.custommsg.internal/CustomMessageLoader/loadMessages"." When calling rosgenmsg("~/costum_messages") which is the folder that contains moveit_msgs folder with the messages.
I wonder if it has something to do with the package.xml and the dependencies, but MATLAB already has all of the message types that are required in the dependencies. Here they are:
<depend>message_generation</depend>
<depend>octomap_msgs</depend>
<depend>actionlib_msgs</depend>
<depend>sensor_msgs</depend>
<depend>geometry_msgs</depend>
<depend>trajectory_msgs</depend>
<depend>shape_msgs</depend>
<depend>object_recognition_msgs</depend>
<depend>std_msgs</depend>

採用された回答

Cam Salzberger
Cam Salzberger 2020 年 1 月 15 日
Hello Pouria,
Unfortunately, the MATLAB ROS custom message capabilities currently only support the "format 1" style for the package.xml file (see here and here). The <depend> flag was only introduced in format 2. You should be able to convert those to <build_depend> tags instead. You can see some simple example package definitions at this location:
fullfile(fileparts(which('rosgenmsg')), 'examples', 'packages')
-Cam

その他の回答 (1 件)

Pouria Tajvar
Pouria Tajvar 2020 年 1 月 16 日
Thanks Cam! It was indeed a version problem. Still persisted after changing the flags to <build_depend>, but I just used one of the older commits in the git and it worked.

カテゴリ

Help Center および File ExchangeCustom Message Support についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by