ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Using custom field types in a ROS message

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

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 -0600

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 521 times

Last updated: Jan 19 '15