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

Using ROS messages as types in another message

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

johnw gravatar image

Hello,

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.

-John
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

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

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
0

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

malong gravatar image
edit flag offensive delete link more

Question Tools

Stats

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

Seen: 661 times

Last updated: Jun 05 '12