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

Keeps replanning in a custom simulation #27

Closed mikexyl closed 3 years ago

mikexyl commented 3 years ago

Hi @Schmluk , I am trying to adopt mav_active_3d_planning in our own work recently. I am running it in a gazebo world, instead of the unrealcv game. I changed the related input/output, and trying to make the planning work. But it stuck at the beginning printing this: Screenshot from 2020-11-18 09-48-01 And the input tsdf map looks correct according to rviz: Screenshot from 2020-11-18 09-37-08 Also the odometry topic should be correct since I echoed it and the rotors hovering example works correct. Screenshot from 2020-11-18 09-54-03 experiment setting is

  x_min: -20.0
  x_max: 20.0
  y_min: -20.0
  y_max: 20.0
  z_min: 0
  z_max: 3

evaluation_bounding_volum:
  x_min: -20.0
  x_max: 20.0
  y_min: -20.0
  y_max: 20.0
  z_min: 0
  z_max: 3

target_bounding_volume:
  x_min: 0
  x_max: 15
  y_min: 0
  y_max: 15
  z_min: 1
  z_max: 2

# System Constraints
planner:
  system_constraints:
    v_max: 0.5
    a_max: 0.5
    yaw_rate_max: 1.57

Do you have any advice where I may do wrong? wrong params or input maybe?

Schmluk commented 3 years ago

Hi @LXYYY, In general the framework should be compatible with various simulators, we also ran it on different ones. What you are describing happens when the planner does not find any feasible paths, and since there are no prior paths to reverse it will essentially rotate for ever. There's different possible reasons for this:

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

Best wishes, Lukas

mikexyl commented 3 years ago

Thanks for your advice @Schmluk , made it run after setting a bigger clearing radius

Schmluk commented 3 years ago

Good to hear! Let us know if you run into more trouble.

Badrivishal commented 1 year ago

Hii, how did you get it to run in a gazebo environment?, I am unable to run it with gazebo. The planner sends this message after toggle, [ INFO] [1681126198.013734540, 1703.728000000]: Started planning.

(0.216s elapsed, 3 new, 3 total, 1 killed by root change, 0 killed while updating)

After this message, nothing comes up. Nothing is happening..