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
    Melodic:
    source /opt/ros/melodic/setup.bash
    Noetic:
    source /opt/ros/noetic/setup.bash
  7. Before running any nodes, run
    rosparam set use_sim_time true
  8. Run roscore
    roscore
  9. Play your rosbag.
    rosbag play -l rosbag.bag

Expected Output
Terminal Window Output