- Install Docker (installation instructions here)
- Clone this repository
- Open
ros.env
- Change
ROS_MASTER_URI=[YOUR ROS MASTER]
to have the url of your ROS master (the format isROS_MASTER_URI=http://[IP or HOSTNAME]:11311
) - Run
docker-compose up --build
- Run
docker-compose exec ros bash
(docker-compose up
has to be running) - Run
cd ~/catkin_ws && catkin_make && source devel/setup.bash
- Run
rosrun rviz rviz
- Open your browser to
localhost:8080/vnc.html
and click connect. - RViz is now running in your browser.
The workspace folder that gets created on your machine by docker-compose
is where you can write and edit your packages. It maps to ~/catkin_ws
on the Docker container. However, if you want to run catkin_make
, do so by creating a bash via docker-compose exec ros bash
and running catkin_make
in /catkin_ws
.
Edit the Dockerfile
line that installs packages and rebuild the container using docker-compose build
.