MATLAB Answers

Create ROS custom message with a Format 2 package.xml

10 ビュー (過去 30 日間)
Dennis Ellery
Dennis Ellery 2016 年 10 月 26 日
コメント済み: Andrew Fillingim 2020 年 4 月 22 日
I ran into an error when using a package.xml that is written in package format="2",
The toolbox doesn't build it's dependency messages.
For example. A custom message is written that uses a std/msg Vector3 as part of it:
In format 1 it is declared in package.xml as:
<build_depend>std_msgs</build_depend>
<run_depend>std_msgs</run_depend>
While in format 2 it's:
<depend>std_msgs</depend>
Here the tool will not build and so also not find the std_msgs.
Will this be implemented / fixed ??
(Running Ubuntu 14.04 with R2015b - student)
Thanks
Dennis Ellery

  0 件のコメント

サインインしてコメントする。

回答 (1 件)

Tohru Kikawada
Tohru Kikawada 2019 年 5 月 2 日
編集済み: Tohru Kikawada 2019 年 5 月 2 日
The ROS message package format 2 is not currently supported. You should still be able to get it to work by changing the line:
<depend>std_msgs</depend>
to
<build_depend>std_msgs</build_depend>

  1 件のコメント

Andrew Fillingim
Andrew Fillingim 2020 年 4 月 22 日
Making this change worked for me when trying to add custom messages. Thanks!

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by