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

Revision history [back]

Do you want a dynamic array of std_msgs/Vector3 by defining your own message type ?

Like this:

Vector3Array.msg:

std_msgs/Vector3[] data

Do you want a dynamic array of std_msgs/Vector3 geometry_msgs/Vector3 by defining your own message type ?

Like this:

Vector3Array.msg:

std_msgs/Vector3[] geometry_msgs/Vector3[] data

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/WritingPublisherSubscriber%28c%2B%2B%29

To Create your own message, follow this:

http://wiki.ros.org/ROS/Tutorials/DefiningCustomMessages