A package for playing a rosbag with ROS-services for controlling the playback.
$ docker build -t hdwlab/rosbridge-rosbag-player:base-master .
$ docker build -t hdwlab/rosbridge-rosbag-player:autoware-master -f Dockerfile.autoware .
The following command will start a container with rosbridge_websocket,
controllable-rosbag-layer and rosbridge-server.
Please replace <path to rosbag>
with a proper path.
$ docker run -it --rm \
-p 9090:9090 \
-v <path to rosbag>:/rosbag.bag:ro \
hdwlab/rosbridge-rosbag-player:base-master \
roslaunch /player.launch path_to_rosbag:=/rosbag.bag
A websocket will be available with ws://localhost:9090
.
Playback can be controlled via the following ros-services.
Call ROS-service /rosbag_player_controller/play
Call ROS-service /rosbag_player_controller/pause
Call ROS-service /rosbag_player_controller/seek <start_time>
Call ROS-service /rosbag_player_controller/set_playback_speed <speed>