ethz-asl / mav_active_3d_planning

Modular framework for online informative path planning.
BSD 3-Clause "New" or "Revised" License
552 stars 110 forks source link

Planner exploring areas other than the Building (CityBuilding Reconstruction Experiment) #31

Closed manthan99 closed 3 years ago

manthan99 commented 3 years ago

Hii

First of all, thank you for the excellent software. I am trying to reconstruct the city building using the reconstruction planner using the default planner configurations. I observed that in some of the runs, if the planner starts to explore the flat land instead of the building, it keeps on exploring that portion instead of the building and fails to return back to the building. I am attaching a screenshot of the sample run-

Screenshot from 2021-02-16 18-05-08

This screenshot was taken after almost 11 minutes of runtime.

Screenshot from 2021-02-16 18-15-08

This screenshot was taken after almost 18 minutes of runtime.

Could you please suggest changing which parameters would be beneficial to avoid this from happening?

Secondly, what might be the easiest way to bound (limit) the exploration region so that we can reconstruct only the specific areas of interest instead of the entire map?

Schmluk commented 3 years ago

Hi @manthan99

Thank you for your interest. It is possible to set a region of interest (bounding box) for the planner via params, the configuration you are likely using is found here active_3d_planning_app_reconstruction/cfg/experiments/CityBuilding.yaml. An important thing to note is that the region of interest is always in Odometry frame of the robot, i.e. the origin is at the pose of the robot when the planner is launched with x pointing forward, y left, z up. This is likely also the reason why the robot explores the wrong area, since the current bounding box assumes the robot is at the initial pose of the simulation. If you move the robot (or the simulation via user control) in before the planner is started, these two frames won't align and the region of interest will be wrongly placed.

To fix this I recommend starting the simulation (without moving the mouse to guarantee you don't move the camera) and then tab out of game control (Alt+Tab for Binary, Ctrl+Shift+F1 for Editor). If you then start the planner the frames should match and the ROI is an enclosure of the building.

Hope this helps, let us know if you have more questions.

manthan99 commented 3 years ago

Thankyou, this solves the problem.