Skip to content

Planner for an omnidirectional drone to map an unknown environment with a camera

Notifications You must be signed in to change notification settings

Te12944265-AMAHA/nbv_mapping

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next-Best-View Mapping with a Quadrotor

This repo contains an implementation of "Receding Horizon “Next–Best–View” Planner for 3D Exploration" by Bircher et al.

Dependencies

Map Creation

To create a map, draw a black and white image in your favorite drawing tool (e.g. pinta) and save it as a png in the config folder. For an example, see test_map.png. Then run map_png_to_txt.py, e.g.

python3 map_png_to_txt.py

and when it asks for the filename, give the path to the file (either the full path or the path relative to your current directory). This script will convert the image to a grid stored in a text file, where each white pixel is free space, represented by a 0, and each black pixel is an obstacle, represented by a 1. The text file will have the same name as the png file, but instead of .png, the extension will be .txt.

Execution

To launch the planner on a map (created as above), run

roslaunch nbv_mapping planner_rviz.launch map:=test_map

The above example launches the planner on test_map.txt. To run on a different map, replace the filename.

If you want to change the size of the map cells, change the cube_length parameter in launch/planner_rviz.launch.

About

Planner for an omnidirectional drone to map an unknown environment with a camera

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 87.1%
  • CMake 10.4%
  • C 2.0%
  • Python 0.5%