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

Can ROS message declare as type list and set ?

asked 2017-08-20 01:11:09 -0500

ChampionWay gravatar image

updated 2017-08-20 01:13:59 -0500

I would like to define a ROS message, and I try to declare one of them as type "list" and "set" however it cannot catkin_make, it said that type "list" has nothing to depends on Do anyone have experience in this situation?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-20 03:55:00 -0500

gvdhoorn gravatar image

updated 2017-08-20 04:51:28 -0500

list and set are not natively supported field types in the ROS msg idl.

Unbouned arrays would probably be equivalent to a list.

I don't think there is a way to get set semantics (ie: collections with a uniqueness guarantee on items) without user-level code (ie: msg producer and consumer) enforcing that.

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


Asked: 2017-08-20 01:11:09 -0500

Seen: 249 times

Last updated: Aug 20 '17