Code Monkey home page Code Monkey logo

swarm_simulator's Introduction

swarm_simulator

This package presents an efficient multi-agent trajectory planning algorithm which generates safe trajectories in obstacle-dense environments. Our algorithm combines the advantages of both grid-based and optimization-based approaches, and generates safe, dynamically feasible trajectory without suffering from an errorneous optimization setup such as imposing infeasible collision constraints. The details can be found at the following link.

  • Authors: Jungwon Park, Junha Kim, Inkyu Jang and H. Jin Kim from LARR, Seoul National Univ.
  • Paper: Efficient Multi-Agent Trajectory Planning with Feasibility Guarantee using Relative Bernstein Polynomial PDF Link
  • Video: Youtube Link

0. Dependencies

Following sources are used to implement this package.

1. Install

(1) Install ROS Kinetic (for Ubuntu 16.04) or Melodic (for Ubuntu 18.04).

(2) Install CPLEX and fix CMAKELIST depending on intallation location. For instance:

set(CPLEX_PREFIX_DIR /opt/ibm/ILOG/CPLEX_Studio129)

(3) At terminal:

sudo apt-get install ros-<distro>-octomap
sudo apt-get install ros-<distro>-octomap-ros
sudo apt-get install ros-<distro>-dynamic-edt-3d
sudo apt-get install python-matplotlib python-numpy python2.7-dev
cd ~/catkin_ws/src
git clone https://github.com/qwerty35/swarm_simulator.git
cd ../
catkin_make
source ~/catkin_ws/devel/setup.bash

(<distro> is kinetic or melodic depending on your ROS version.)

2. Demo

roslaunch swarm_planner plan_rbp_random_forest.launch

3. Simulation Configuration

You can configure the simulation setting at the launch file, plan_rbp_random_forest.launch.

  • runsim: You can see the planning result at the rviz.

  • log: You can see more detail message, and QPmodel and planning results will be saved in "swarm_planner/log"

  • mission: You can deploy the mission by editing the json file in "swarm_planner/missions" directory.

  • replay:

    • false: It runs the simulation at the random forest.
    • true: It runs the simulation at the map specified at 'replay_map' tag.
    • Map files are located in "swarm_planner/worlds", and should be octomap bt files.
  • plan_time_scale: Execute time scale to match dynamic limits specified at mission file.

  • plan_time_step: You can execute time scale with this tag manually unless plan_time_step is true

  • plan_sequential: Execute seqeuntial planning. You can change the batch size at 'plan_batch_size' tag.

  • plan_batch_iter:

    • positive number: You can see the intermediate result of seqential planning.
    • 0: it shows initial trajectory.
    • -1: it means maximum batch iteration.

3. Notes

(1) You may turn off 'runsim', 'log' arguments to check the correct computation time. (2) This code is not fully tested with various maps. Grid generation algorithm may not work with other maps.

swarm_simulator's People

Contributors

qwerty35 avatar jtorde avatar

Watchers

James Cloos 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.