GithubHelp home page GithubHelp logo

gaoyunhua / area-coverage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hihixuyang/area-coverage

0.0 2.0 0.0 321 KB

Simulation for planar area coverage by a swarm of ground robots

License: Apache License 2.0

MATLAB 97.97% C 1.90% Shell 0.13%

area-coverage's Introduction

Area-Coverage

Simulation for planar area coverage of a convex region by a swarm of ground robots.

The robot positioning can be exact, in which case a Voronoi partitioning is used, or uncertain in which case a Guaranteed Voronoi partitioning is used instead. The implemented control laws are:

  • Cell centroid
  • r-limited cell centroid
  • Free arcs (optimal for Voronoi)
  • GV complete (optimal for Guaranteed Voronoi)
  • GV compromise (simpler suboptimal for Guaranteed Voronoi)

The robots are also allowed to have finite communication ranges, in which case they create their cells using only the nodes inside their communication radius. There are also options to restrict the movement of robots inside the region of interest and to prevent them from colliding when their positioning is uncertain.

Usage

Before using the scripts, you must copy the the gpcmex file from MATLAB/[Release]/toolbox/map/map/private/ into Functions/Polygon. The sample script copy_gpcmex.sh does this for a typical Linux installation of MATLAB R2016b.

SIM_coverage_disks.m Use this to run simulations. You can select the control law used by uncommenting the appropriate line at the beginning of the file. You can also set other simulation parameters there.

PLOT_sim.m Used to plot the data from a .mat file saved after the end of a simulation. Set the .mat file to load and the plots to show at the beginning of the file.

PLOT_compare_sims.m Used to compare the results of two simulations. Used the same way as PLOT_sim.m. Note that the simulations must have the same duration and time step.

Screenshots

License

Distributed under the Apache License Version 2.0
Copyright © 2016 Sotiris Papatheodorou

area-coverage's People

Contributors

sotpapathe avatar

Watchers

James Cloos avatar 高云华 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.