Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 84

How to force std::vector type for fixed-length arrays in msg?

$
0
0
Hi, According to this page [http://wiki.ros.org/msg](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](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[]`.

Viewing all articles
Browse latest Browse all 84

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>