ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can start playing file from specific time with parameter -s
, but you will have to find this time yourself. It can be done either manually or via rosbag API. Basically, you will have to iterate through all the messages and test them against necessary conditions, e.g. GPS coordinates. For this kind of tasks I personally prefer Python, but there is C++ API as well. You can find some code snippets here.
For details on rosbag play
commandline usage, please see rosbag/Commandline/play.