Git Product home page Git Product logo

coverage_planner's Introduction

Instructions for building and running the package, taking input, visualization in rviz and 
a brief description of the code files.

Assumptions:

1) The environment is bounded by a convex polygon and contains obstacles as convex polygons
2) The robot can execute the motions up, left, down, right.


1. Making the coverage planner package:

This package is for ros kinetic. It may or may not run in newer or older versions.
Download the package in your catkin workspace and build the package using catkin make. 
It has dependencies already included in ros kinetic and on the boost library.


2. To run the package, execute the following command after having built the package:

rosrun coverage_planner coverage_planner_node

coverage_planner_node is name of the C++ executable


3. Visulization in rviz:

For visualizing in rviz, add 2 markers and a marker array as the display items.

The topics for markers are:
/visualization_marker
/visualization_marker_path

The topic for marker array is:
/visualization_marker_obs

Also add grid and axes for better display. Fixed frame will have the name 'map'.

NOTE: if topic of marker is added to marker array or vice-versa, ros will give an error.

4. Instructions for input from rviz:

The terminal will ask you to click points on rviz and then enter a digit.
To enter a polygon, enter its vertices by clicking points on rviz screen using the '2D Pose Estimate' button.
Adjacent vertices shall be entered in order. i.e., The points shall be clicked in either clockwise or counter-clockwise direction.
After entering polygon vertices, enter a digit on the terminal screen. If a convex polygon is not entered, the program will exit.

After entering the vertices, you shall now be able to visualize the polygon in blue.

Next, the terminal will ask you to enter number of obstacles. If a negative number is entered, the program will exit. 
The terminal will then ask you to enter obstacle points. As above, click points on rviz using '2D Pose Estimate' to form a convex polygon. After entering points for each obstacle, enter a digit.

After entering the obstacles as polygon vertices, you shall now be able to visualize the obstacles in green.

Once, done, the plan will be computed. The plan will be displayed in rviz in red.

5. Description of code files

The major source code lies in the file src/coverage_planner.cpp
The main function lies in src/coverage_planner_node.cpp
visualization code lies in include/coverage_planner/visualization.h
Data types for representing environments lie in environment.h and discr_environment.h








coverage_planner's People

Contributors

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