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

I want to publish a list that can contain any kind of data type [closed]

asked 2022-05-01 21:53:47 -0500

distro gravatar image

I want to publish a list of tuples or any other data type, Are there any message types that fulfill this in ROS?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by distro
close date 2023-01-16 12:23:46.589793

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-05-02 04:01:25 -0500

gvdhoorn gravatar image

updated 2022-05-02 04:01:41 -0500

I want to publish a list of tuples or any other data type, Are there any message types that fulfill this in ROS?

No, there isn't.

Or at least, not if you'd like those fields to actually have a type.

Message fields inherently have a type, such as int8 or bool or float64.

There is no support for variant types, or untyped fields.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-05-01 21:53:47 -0500

Seen: 46 times

Last updated: May 02 '22