Skip to content

Latest commit

 

History

History
98 lines (77 loc) · 2.33 KB

README.md

File metadata and controls

98 lines (77 loc) · 2.33 KB

Ros Workshop 2022

Instructor & Contact Info

Nombre Correo Github
José Cisneros [email protected] @Josecisneros001

Requirements

  • Ubuntu System (any Distro)

  • Docker

  • Nvidia Support Installation (Optional, Rviz & Gazebo could also run with Intel Integrated Graphics Card):

    distribution=$(. /etc/os-release;echo $ID$VERSION_ID) && curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - && curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
    
    sudo apt-get update
    
    sudo apt-get install -y nvidia-docker2
    
    sudo systemctl restart docker

    Reference

  • Github Repository

    # Cloning with HTTP
    git clone --recurse-submodules https://github.com/RoBorregos/ros-workshop-2022.git
    
    # Cloning with SSH
    git clone --recurse-submodules [email protected]:RoBorregos/ros-workshop-2022.git
    
    # Moving into the repo
    cd ros-workshop-2022

Setup

Build Docker Image and create Docker Container every time there is a change to the Dockerfile.

1-.

    sudo make ros.build

2-. Give Executable Permissions if necessary

chmod +x ./run_scripts/*

3-.

  • Create with Nvidia Support
    sudo make ros.nvidia.create
  • Create with Intel Support
    sudo make ros.intel.create
  • Create without gpu (Rviz & Gazebo will not work)
    sudo make ros.create

Run

1-.

  • Run container and fire up a shell
    sudo make ros.up
    sudo make ros.shell

Stop

  • Stop container
    sudo make ros.down

Helpful Commands

  • Insided the container:

    • Use several terminals with terminator
          terminator -u
  • Outside the container:

    • Show a list of all existing containers.
        sudo make list
    • Show a list of all running containers.
        sudo make listUp

See Makefile to discover other useful commands to manipulate Docker Containers.