MATLAB Answers

Create ROS custom message with a Format 2 package.xml

13 views (last 30 days)
Dennis Ellery
Dennis Ellery on 26 Oct 2016
Commented: Andrew Fillingim on 22 Apr 2020
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:
While in format 2 it's:
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)
Dennis Ellery


Sign in to comment.

Answers (1)

Tohru Kikawada
Tohru Kikawada on 2 May 2019
Edited: Tohru Kikawada on 2 May 2019
The ROS message package format 2 is not currently supported. You should still be able to get it to work by changing the line:

  1 Comment

Andrew Fillingim
Andrew Fillingim on 22 Apr 2020
Making this change worked for me when trying to add custom messages. Thanks!

Sign in to comment.