ros / ros_comm

ROS communications-related packages, including core client libraries (roscpp, rospy, roslisp) and graph introspection tools (rostopic, rosnode, rosservice, rosparam).
http://wiki.ros.org/ros_comm
752 stars 911 forks source link

rosbag::View::iterator::getEndTime() does not return time of last message #2273

Open ovaag opened 2 years ago

ovaag commented 2 years ago

I am reading a bag where the last msg in a rosbag::View have stamp 1659445181.391939000

However, if I call the .getEndTime() method on the same view, I get a somewhat later stamp 1659445181.636149489

This is causing trouble for me in my code where I need exactly the stamp of the last msg on a rostopic.