Publishing 2D arrays with ROS

Typically: "How do I... ", "How can I... " questions
Post Reply
no_cap
Posts: 1
Joined: 13 Feb 2021, 04:42

Publishing 2D arrays with ROS

Post by no_cap »

Is there a good way to publish a 2D array from V-REP to a ROS topic? I'm trying to publish position information for multiple objects in my scene all at once and would like to be able to publish them all in a single message per time step as opposed to publishing each one separately to different topics.

Thanks!

fferri
Posts: 1222
Joined: 09 Sep 2013, 19:28

Re: Publishing 2D arrays with ROS

Post by fferri »

You can create your own message, or you can re-use one of the many standard messages, e.g. geometry_msgs/PoseArray or std_msgs/Float32MultiArray.

Post Reply