PX4 / PX4-Avoidance

PX4 avoidance ROS node for obstacle detection and avoidance.
http://px4.io
BSD 3-Clause "New" or "Revised" License
635 stars 330 forks source link

Avoidance system not ready when using local_planner_depth-camera.launch #707

Open ghost opened 1 year ago

ghost commented 1 year ago

Whenever I run roslaunch local_planner local_planner_depth-camera.launch all I get is

WARN [health_and_arming_checks] Preflight Fail: Avoidance system not ready

and

[ WARN] [1694162985.730929001, 45.760000000]: Planner abort: missing required data

kerct commented 1 year ago

Same here, I'm able to run the example with local planner stereo but not with depth camera

ChanJoon commented 1 year ago

@Vu1tUrR @kerct Hi. I have experience using PX4-Avoidance recently. First, you need to check the topic "/camera/depth/points" in the launch file. You can find it on line 5. If there are no pointcloud_topics in the planner node, those messages will be published.

From what I remember, this problem occurred with the Gazebo model. The "iris_depth_camera" model is currently not publishing depth topics. (This might depend on your ROS version.) You should check which plugin is used in the model and whether it's available for your ROS version. Alternatively, you can replace the model with your custom model that includes a depth camera with iris. (If you want to use a custom model with PX4-Autopilot, you'll need to make some modifications, but that's beyond the scope of this discussion. There are many instructions available on the PX4 forum.)

kerct commented 1 year ago

Thanks @ChanJoon!

@Vu1tUrR I solved it by changing the topic in the launch file (on line 5) to /iris_obs_avoid/camera/depth/points because I saw that the messages were being published there instead of to /camera/depth/points. I'm using Gazebo 11 on Ubuntu 20.04.

ChanJoon commented 1 year ago

Thanks @ChanJoon!

@Vu1tUrR I solved it by changing the topic in the launch file (on line 5) to /iris_obs_avoid/camera/depth/points because I saw that the messages were being published there instead of to /camera/depth/points. I'm using Gazebo 11 on Ubuntu 20.04.

Yes You are correct. I forgot what I did before :( If you want to know more detailed discussions. Check out this PR https://github.com/PX4/PX4-SITL_gazebo-classic/pull/983

Mostafa12d commented 5 months ago

Thank you very much!