How to force std::vector type for fixed-length arrays in msg?
Hi,
According to this page http://wiki.ros.org/msg fixed-length arrays in msg files can be interpreted as boost::array
or std::vector
.
Whenever I tried to apply any vector logic to a message with a fixed-length array (let's say uint8[8]
) it would throw errors saying that the type is of boost::array
.
How can I enforce std::vector
type on fixed-sized fields inside ROS messages?
EDIT: here's an example: http://docs.ros.org/api/can_msgs/html/msg/Frame.html, I would like to have data field as std::vector
without changing the field itself to uint8[]
.