Skip to content

Docker compose container for full ROS development in Webbrowser

License

Notifications You must be signed in to change notification settings

LagzdinsHSLU/ros_env_vscode_webviz

Repository files navigation

ros_env_vscode_webviz


Origin:

Packed with:

  • Pre-configured docker image for ROS development.
  • Browser accessible X11 server to display gazebo, rviz, rqt (runs on Windows/Mac).
  • Tasks definition to run catkin_make, roscore, rviz commands.
  • Preconfigured code completion for C++, Python, XML (package.xml, launchfiles, URDF, SDF).
  • Preconfigured simulation environments (Flatland, TurtleBot3, ARIAC, Virtual RobotX, UUV).
  • Bonus: WebIDE (Theia) with preconfigured C++, Python, XML completion.
  • Webviz

Requirements

Before you start you have to have docker and docker-compose installed on your machine. If not, install using:

  1. Ubuntu:
$ sudo apt-get update
$ sudo apt-get install docker docker-compose
  1. On Mac Docker-compose should be part of docker Desktop, if not, use the following gude https://docs.docker.com/docker-for-mac/install/
  2. On Windows one needs to install Docker desktop https://docs.docker.com/docker-for-windows/install/

How to use the WebIDE

As of writing, docker-compose support of VSCode is not perfectly stable on all the platforms. We recommend using Theia WebIDE since it has complete VSCode function support after 1.0 release.

  1. Clone this repository:
$ git clone https://github.com/LagzdinsHSLU/ros_env_vscode_webviz.git
  1. Enter the following command under the folder of the cloned project:
$ cd ros_env_vscode_webviz
$ sudo docker-compose up

If you run this command for the first time, it will download lots of data and run for a long time => take a coffee :) Once the command has completed start up the environment:

  1. Open http://localhost:3001/ to get VS Code using your favorite browser.

  2. Open http://localhost:3003/ to get webviz using your favorite browser.

  3. Open http://localhost:3000/ to get x11 vnc server using your favorite browser.

  4. To start turtlesim simulation:

    • in VS Code open terminal and write:
    $ rosrun turtlesim turtlesim_node 
    • now one should see the turtlesim in x11 vnc server http://localhost:3000/
    • in VS Code open 2nd terminal and write:
    $ rosrun turtlesim turtle_teleop_key
    • now one should be able to move the turtle with keyboard arrows

About

Docker compose container for full ROS development in Webbrowser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published