Coder Social home page Coder Social logo

rureverek / turtlebot3_local_planner_benchmark Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 157.37 MB

Simulation in Gazebo in Ros with Turtlebot3 Model to compare performance of local planners: DWA and TEB.

License: BSD 2-Clause "Simplified" License

CMake 42.43% C++ 57.57%

turtlebot3_local_planner_benchmark's Introduction

ROS Navigation stack local planner benchmark with Turtlebot3 Model

Requirements:

alternative: use provided Docker Image:

docker pull piotrmik/test
docker run -it --env="DISPLAY=host.docker.internal:0.0" --env="scenario=<>" piotrmik/test

Build and installation

If the requirements are met, jump to Install package.

Install ROS:

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt install curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo apt update
sudo apt install ros-noetic-desktop-full

Source setup.bash

echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc

Init rosdep

sudo apt install python3-rosdep
sudo rosdep init
rosdep update

Init catkin

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin_make

Install git

sudo apt install git

Install package

Clone repo

cd ~/catkin_ws/src
git clone https://github.com/rureverek/turtlebot3_local_planner_benchmark.git

Source workspace and Install dependencies

cd ~/catkin_ws
echo "source $(pwd)/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
rosdep install turtlebot3_local_planner_sim

Build package

cd ~/catkin_ws
catkin_make

Configure environment

in ~/.bashrc

echo "export TURTLEBOT3_MODEL=waffle_pi" >> ~/.bashrc
echo "export GAZEBO_PLUGIN_PATH=~/catkin_ws/src/turtlebot3_local_planner_benchmark/plugins" >> ~/.bashrc
source ~/.bashrc

Run the simulation

DWA Planner: roslaunch turtlebot3_local_planner_sim run_simulation_dwa.launch scenario:=<name-of-scenario>

Standalone:

DWAPlannerROS:
  potential_planner: False

Potential Field planner:

DWAPlannerROS:
  potential_planner: True

(param/dwa_local_planner_params_waffle_pi.yaml)

TEB Planner: roslaunch turtlebot3_local_planner_sim run_simulation_teb.launch scenario:=<name-of-scenario>

Scenarios currently supported:

  • Static
  • Dynamic_simple
  • Dynamic_complex
  • Maze
  • Narrow
  • House
  • Track
  • Big_house
  • Big_house_part_unknown

Note:

  • Letter case matters when specifying scenario name in the run command
Dwa init Dwa just before collision
halo
Teb init Teb avoiding dynamic obstacle

turtlebot3_local_planner_benchmark's People

Contributors

rureverek avatar

Stargazers

Andre avatar  avatar

Watchers

 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.