Git Product home page Git Product logo

tmstc-star's Introduction

TMSTC-Star

A Turn-minimizing Algorithm For Multi-robot Coverage Path Planning

Description

It partitions the map with a minimum number of bricks as spanning tree’s branches, greedily connects bricks to form a complete spanning tree and then applys the greedy strategy of MSTC* to find the optimal equilibrium division on the topological loops around the spanning tree, thus averaging the weights of each robot coverage path. In addition, it incorporates turn cost into the weights of the paths.

1. Prerequisites

Ubuntu and ROS Ubuntu 16.04. ROS Kinetic. Or Ubuntu and ROS Ubuntu 18.04. Something went wrong with robot pose publisher in ROS Noetic, not recommended.

Make sure your gazebo has all models especially when you are using ROS kinetic, otherwise gazebo may stuck at the beginning of simulation.

    cd ~/.gazebo && mkdir models
    cd ~/.gazebo/models
    git clone https://github.com/osrf/gazebo_models

2. Build package on ROS

    cd ~/catkin_ws/src
    git clone https://github.com/CourierLo/TMSTC-Star.git
    cd ../
    catkin_make
    source ~/catkin_ws/devel/setup.bash

3. Run programs

    roslaunch MSTC_Star_update main.launch
    rosrun MSTC_Star_update realTf_broadcaster
    rosrun MSTC_Star_update map_transformer

4. Parameters Explanation (main.launch)

/robot_number: the number of robots that gazebo simulates

/allocate_method: "DARP" or "MSTC"

/MST_shape: "DFS_HORIZONTAL", "DFS_VERTICAL", "KRUSKAL", "ACO", "HEURISTIC" or "DINIC"

/coverAndReturn: let robots return to its depot or not, "true" or "false"

/data_file_path: results' data path, results contain planning time and coverage time(min and max)

/map_scale: the number of image pixels for a map grid's width and height, the smaller you set, the bigger the coverage map will be

/coverage_action: if you don't want robots cover at all so as to see the planning paths, set "false"

If sets "MSTC" and "DINIC" at the same time, the planner will perform TMSCT*. Change main.launch to add more robots. If you want to use another map, remember to modify image path in map/map.yaml as well.

5. Demos

mCPP on various environments:

indoor

random

Denver_2

NewYork_0

indoor_res

random_res

Denver_2_res

NewYork_0_res

tmstc-star's People

Contributors

courierlo 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.