Skip to content

VirtualEnvironments

Junichi Tokuda edited this page Mar 19, 2019 · 2 revisions

Building ROS environment

VirtualBox generally works with ROS, but has an issue with rviz - VB's 3D graphics acceleration does not work with rviz, and if it is turned off, the software becomes too slow. The 3D graphics acceleration in recently-released VirtualBox version 6.x seems to work with rviz, but still far from practical.

Alternatively, Docker + VNC works better at least for some environment. There is a Docker image with pre-installed ROS Kinetic, rviz, and Web VNC server available at https://hub.docker.com/r/ct2034/vnc-ros-kinetic-full/

The following process is tested on Docker with ROS Kinetic and VNC.

Setting up

Map the local HDD to the home directory (so that the files won't go away if the Docker image is terminated) using the following command:

alias docker-ros='docker run -it --rm -p 6080:80 -p 28944:18944 -p 20022:22 -v /Users/junichi/Projects/ROSIGTL/DockerDisk/:/root/ ct2034/vnc-ros-kinetic-full'

Launch the terminal, and setup an ROS environment:

# source /opt/ros/kinetic/setup.bash