This dockerfile builds a docker image with ROS smach_viewer inside, based on ROS melodic. This enables smach_viewer on noetic release for example
Command to start smach_viewer and mount .ros/dotfiles directory to save .dot files:
xhost +SI:localuser:root &&
docker run -it --rm \
--net=host \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
-v ~/.ros/dotfiles:/root/.ros/dotfiles \
--device /dev/dri:/dev/dri \
--ipc host \
nobleo/smach_viewer
Hint: one could make an alias for this oneliner in .bashrc
alias smach_viewer_docker='xhost +SI:localuser:root
docker run -it --rm \
--net=host \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
-v ~/.ros/dotfiles:/root/.ros/dotfiles \
--device /dev/dri:/dev/dri \
--ipc host \
nobleo/smach_viewer'
And then simply start the dockerized smach_viewer by typing:
smach_viewer_docker
Content type
Image
Digest
sha256:ce8110890…
Size
636.2 MB
Last updated
over 3 years ago
docker pull nobleo/smach_viewer