Giter Site home page Giter Site logo

flywingm / rosdocked-irlab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from icclab/rosdocked-irlab

0.0 0.0 0.0 65.91 MB

Run our ROS noetic environment including the workspace and projects

Shell 25.82% Python 40.47% CMake 7.09% Dockerfile 26.62%

rosdocked-irlab's Introduction

Rosdocked-irlab

A docker container with some of the robotic simulations from the cloud robotics initiative @ ICCLab

TL;DR

Run our ROS noetic environment including the workspace and projects

cd WORKSPACE
docker-compose -f docker-compose.yml up

A container (robopaas/rosdocked-noetic-cpu:latest) will be pulled and started. Another container running noVNC will be started and you'll be able to access it and see the GUI through a browser at: http://localhost/vnc.html

In order to access the container and start our components, in another console, you'll have to find the ros container and enter it, e.g.:

docker ps
docker exec -it workspace_ros_1 bash

You can try our projects within it, e.g., to run the robot navigation project:

roslaunch icclab_summit_xl irlab_sim_summit_xls_complete.launch

Or to run the grasping project:

roslaunch icclab_summit_xl irlab_sim_summit_xls_grasping.launch

In the browser you will see Gazebo and Rviz and you'll be able to control the robot from there.

You may also want to start a container without novnc, but connecting to a local running Xserver instance. For this you can use the following command instead:

cd WORKSPACE
./run_cpu_xserver.sh

Longer story (Only if you need to rebuild / edit code)

We are now using multi-stage build for this container.

We are currently using 3 different "base images" to which we add all our repos and source code in a subsequent step.

Base images are built running build.sh from each of the base image folders:

  • BASE_CPU (run these containers on machines without nvidia GPU support)
  • BASE_GPU (for hosts with Nvidia GPUs)
  • BASE_K8S (run as k8s containers on nodes with GPU)

You can use scripts in the WORKSPACE directory to add our catkin workspace to any of the base images. In WORKSPACE you'll also find scripts for running the images either as docker compositions or standalone.

NOTE on Building GPU/K8S images:

Our GPU/K8S use nvidia GPUs, to build you need a nvidia GPU + configure the nvidia docker runtime to be run as default (i.e., also when calling nvidia-docker build). You should edit your /etc/docker/daemon.json to look like this:

{
    "default-runtime": "nvidia",	
    "runtimes": {
	"nvidia": {
	    "path": "nvidia-container-runtime",
	    "runtimeArgs": []
	}
    }
}

rosdocked-irlab's People

Contributors

dimodimi avatar dizz avatar fitter22 avatar gtoff avatar jbohren avatar leankyr avatar markstraub avatar miltzhaw avatar rdesc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.