ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
sizeof()
returns the size in bytes of the object representation of the respective type. Thus, on a 64bit system (I'm assuming you have this), this is 24 bit for a vector (see e.g. this blog post, first bullet point), if it is empty.
If you want to have the number of elements, use res.poses.size()
(see here).