Git Product home page Git Product logo

ros2-turtlebot3-gazebo-docker's Introduction

ROS 2 foxy Gazebo Simulation in docker

Run gazebo classic simulation with Turtlebot 3 with ROS 2 foxy in a local docker container.

Motivation

Simple simulation for testing purposes.

Installation

  1. Check out all submodules with this repository (git submodule init && git submodule update -r)
  2. Install docker. Make sure you have the right version for your graphic-card installed (e.g. docker-nvidia2 for NVIDIA graphics cards)!
  3. Install terminator using your systems package manager (e.g. sudo apt install terminator).

Configuration

There's no further configuration needed, but you might want to take a look at these:

  1. To run in an isolated environment the container use their own docker network called turtlebot. If you want to access it from the host network you might want to change to network-mode: host and remove the turtlebot-network entries.
  2. Configure ROS_DOMAIN_ID (default 30) and TURTLEBOT3_MODEL (default burger) if you like to run multiple robots.

General Usage

After you installed docker and terminator you can directly call the ./run.bash-script, it starts the robot in the basic Turtlebot environment as well as everything that is needed for autonomous navigation and rviz2.

Development

Note that you don't need to run the build script, the image is pushed to docker hub, just run docker-compose pull!

If you want to rebuild the docker-container and do not want to use the provided container from docker hub you can force a rebuild it by running ./build.bash in the subfolder.

Custom ros2-commands from the host system

If you like to run custom ROS commands you can do so by going into the remote-pc-folder and execute ./turtlebot.bash YOUR_ROS_COMMAND like so:

cd remote-pc
./turtlebot.bash ros2 topic list

Cleanup

When you close the terminator-window docker-compose down will be executed in the remote_pc and simulated_turtlebot subfolders to stop all remaining docker instances. Note that this might also stop other docker container you are running!

Contributing

Please use the issue tracker to submit bug reports and feature requests. Please use merge requests as described here to add/adapt functionality.

License

This code is distributed under the 3-clause BSD license.

Maintainer / Authors / Contributers

Andreas Bresser, [email protected]

ros2-turtlebot3-gazebo-docker's People

Contributors

brean avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ros2-turtlebot3-gazebo-docker's Issues

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.