Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

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

Open
ghost opened this issue Sep 8, 2023 · 5 comments
Open

Comments

@ghost
Copy link

ghost commented Sep 8, 2023

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

@ghost ghost changed the title Avoidance system not ready Avoidance system not ready when using local_planner_depth-camera.launch Sep 8, 2023
@kerct
Copy link

kerct commented Sep 19, 2023

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

@ChanJoon
Copy link
Contributor

@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
Copy link

kerct commented Sep 21, 2023

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
Copy link
Contributor

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 PX4/PX4-SITL_gazebo-classic#983

@Mostafa12d
Copy link

Thank you very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants