Playing a rosbag - olinrobotics/gravl GitHub Wiki

To play back a rosbag use the following commands:

  1. Start up roscore:
roscore
  1. Open a new terminal and set use_sim_time to true:
rosparam set use_sim_time true
  1. Open a new terminal and start the rosbag:
roscd tractor/
cd bags/
rosbag play -l --clock XXX.bag
  1. Open a new terminal and start localization:
roslaunch tractor localization.launch