Playing back a ROSbag in Docker

  1. In the App, create a Device.
  2. Copy the curl command.
  3. Create a Docker Image. This is where you will run your virtual device and rosbag.
  4. Bash into your docker container.
    i.e. docker exec -it robot_env bash
    -paste into docker container-
  5. Copy the rosbag into your docker container.
  6. Source the setup.
    source /opt/ros/{version name}/setup.bash
    source /opt/ros/melodic/setup.bash
    source /opt/ros/noetic/setup.bash
  7. Before running any nodes, run
    rosparam set use_sim_time true
  8. Run roscore
  9. Play your rosbag.
    rosbag play -l rosbag.bag

Expected Output
Terminal Window Output