Publishing and Subscribing Vectors
Hi,
How can I receive a vector (with unknown length and contains three floats) over Publisher and Subscriber in C++?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
Hi,
How can I receive a vector (with unknown length and contains three floats) over Publisher and Subscriber in C++?
Do you want a dynamic array of geometry_msgs/Vector3 by defining your own message type ?
Like this:
Vector3Array.msg:
geometry_msgs/Vector3[] data
Question in Comment:
PubSub Tutorial: http://wiki.ros.org/ROS/Tutorials/Wri...
To Create your own message, follow this:
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2015-08-02 09:03:32 -0600
Seen: 1,320 times
Last updated: Aug 03 '15
Subscriber in a vector of objects
Rosserial/Arduino Publishers and Subscribers
how to clear rospy publisher/subscriber's queue
Why is my turtlebot not moving continuously
adding std_msgs Int16 and int ?
publisher is faster than callback where is called [closed]
question about the nodehandle for subscribing and publishing