ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Using ROS messages as types in another message

asked 2012-06-05 15:32:00 -0600

johnw gravatar image


I am a little confused about using messages as data types within another message. Is this possible? How does the system resolve the message type? I noticed that the Header message does not require a package name.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-06-05 17:10:10 -0600

joq gravatar image

Use package_name/MessageName. That external package must have a <depends> in your manifest.xml. If the included message is defined in the same package, you can leave off the package_name/.

Header is a special case.

edit flag offensive delete link more

answered 2012-06-05 21:32:52 -0600

malong gravatar image
edit flag offensive delete link more

Question Tools


Asked: 2012-06-05 15:32:00 -0600

Seen: 577 times

Last updated: Jun 05 '12