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

Using custom field types in a ROS message

asked 2015-01-18 21:40:15 -0500

Bidski gravatar image

Is it at all possible to construct a message containing fields with an arbitrary type?

For instance, I would like to create a message containing an array of type pcl::Correspondence. Is this possible or would I have to convert this to a group of primitive objects first?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-01-19 02:35:02 -0500

ahendrix gravatar image

Since ROS messages generate code for many languages, it isn't possible to use language-specific types within message.

You'll have to convert your types into ROS types.

You can also adapt C++ types for serialization (see: ), but this still doesn't allow them to be used within other messages.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-01-18 21:40:15 -0500

Seen: 608 times

Last updated: Jan 19 '15