GithubHelp home page GithubHelp logo

haonimaqaq / multi_turtlebot3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from airuchen/multi_turtlebot3

0.0 0.0 0.0 117.96 MB

ROS packages for Turtlebot3

Home Page: http://turtlebot3.robotis.com

License: Apache License 2.0

Shell 0.51% C++ 15.04% Python 54.17% Lua 6.37% CMake 23.91%

multi_turtlebot3's Introduction

Multiple TurtleBot3 Navigation Environment

Literally as title, this package provides launch files allowing turtlebots to navigate in "the house".

Installation

  1. Install ROS. (Hey Google, what is ROS?)
  2. Clone all relative packages into <your_ws>/src/.
source /opt/ros/melodic/setup.bash
cd catkin_ws
wget https://gist.githubusercontent.com/airuchen/5e58eb5dc54d6dc38ea5d2bedd53f69e/raw/ae3b850aca5a0577105c682eec1ab3b534161cc2/multi_omnibot.repos
vcs import src/ < multiple_turtlebot3_env.repos
catkin_make
source devel/setup.bash

Usage

  1. First terminal -- Launch the simulation
  • Source setup file.
source /opt/ros/melodic/setup.bash
source <your_ws>/devel/setup.bash
export TURTLEBOT3_MODEL=waffle_pi
  • Launch multiple turtlebot3 in Gazebo simulation.
roslaunch turtlebot3_gazebo multi_turtlebot3.launch

There, there, you'll see the Gazebo window showing house model and three turtlebot3 -- tb3_0, tb3_1, tb3_2 To save the usage of your CPU usage, killall gzclient can close the GUI, which consumes lots of resource.

  1. Second terminal -- Launch navigation stacks
  • Source setup file.
source /opt/ros/melodic/setup.bash
source <your_ws>/devel/setup.bash
  • Launch Navigation for three turtlebot3.
roslaunch turtlebot3_navigation multi_nav_bringup.launch

Rviz shows up.

By changing topics in Tool properties, set Pose estimation of each bot.

After setting each of their pose, Rviz would be like this.

Now, the way to set goal is identical with how you set the pose estimation. Try to give each robot a different goal.

Control with Behavior Tree

rosrun bt_sample node _file:=/home/<user>/catkin_ws/src/BT_ros1/BT_sample/cfg/multi_bt.xml

The behavior tree will set goal to each robot. See the DEMO

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.