Giter VIP home page Giter VIP logo

turtlesim's Introduction

Turtlesim

dockerized environment for ROS tutorials

Use

fork this repo and clone it to your local machine

navigate to the turtlesim directory

building the image

run .docker/build_image.sh to build the docker image or .docker/build_image_zsh.sh to build the docker image if you are using zsh

running the container

run .docker/run_user.sh to run the docker container or .docker/run_user_nvidia.sh if you have an nvidia gpu and have installed the nvidia docker package

This will mount the users home directory to the container and run the container in interactive mode. You will not own the workspace run sudo chown -R $USER /dev_ws to take ownership of the workspace.

terminal

multiple terminals

terminator is installed in the container and can be run with terminator.

sourcing the ROS environment

Add the following to your .bashrc (located in home/$USER) to automatically source the ROS environment when opening a new shell in the container.

if [ -f "/dev_ws/setup.bash" ]; then
    source /dev_ws/setup.bash
fi

or if you are using zsh to your .zshrc

if [ -f "/dev_ws/setup.zsh" ]; then
    source /dev_ws/setup.zsh
fi

vscode integration

requires the following vscode extensions to be installed

devcontainer.json is included in the .docker directory of this repo.

Attach vs code to container

In vs code go to the Docker tab in the side bar. Right click on the container named turtlesim:latest. Select attach vscode.

When attaching to the container for first time:

In vs code open the command palette (Ctrl-Shift-P). Select Remote-containers: Open attached container configuration file. Copy paste content of devcontainer.json and save. Close the vscode window and reattach.

turtlesim's People

Contributors

vincehuyghe avatar bips86 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.