PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.2k stars 13.37k forks source link

[Bug] Flight simulation with gz garden, ros humble, and px4 v1.14 exits with timeout #23504

Open ashirsat opened 1 month ago

ashirsat commented 1 month ago

Describe the bug

ERROR [gz_bridge] Service call timed out ERROR [gz_bridge] Task start failed (-1) ERROR [init] gz_bridge failed to start ERROR [px4] Startup script returned with return value: 256

or

To Reproduce

make px4_sitl PX4_SYS_AUTOSTART=7008 PX4_GZ_MODEL_POSE="0,0,1.25,0,0,0" PX4_GZ_MODEL=custom_robot_model_with_segmentation_camera PX4_GZ_WORLD=large_world_with_many_small_models ./build/px4_sitl_default/bin/px4

Expected behavior

PX4_SYS_AUTOSTART=7008 PX4_GZ_MODEL_POSE="0,0,1.25,0,0,0" PX4_GZ_MODEL=custom_robot_model_with_segmentation_camera PX4_GZ_WORLD=large_world_with_many_small_models ./build/px4_sitl_default/bin/px4


| \ \ \ / / / | | |/ / \ V / / /| | | / / \ / /_| | | | / /^\ \ __ | _| \/ \/ |/

px4 starting.

INFO [px4] startup script: /bin/sh etc/init.d-posix/rcS 0 env SYS_AUTOSTART: 7008 INFO [param] selected parameter default file parameters.bson INFO [param] selected parameter backup file parameters_backup.bson SYS_AUTOCONFIG: curr: 0 -> new: 1 SYS_AUTOSTART: curr: 0 -> new: 7008 CAL_ACC0_ID: curr: 0 -> new: 1310988 CAL_GYRO0_ID: curr: 0 -> new: 1310988 CAL_ACC1_ID: curr: 0 -> new: 1310996 CAL_GYRO1_ID: curr: 0 -> new: 1310996 CAL_ACC2_ID: curr: 0 -> new: 1311004 CAL_GYRO2_ID: curr: 0 -> new: 1311004 CAL_MAG0_ID: curr: 0 -> new: 197388 CAL_MAG0_PRIO: curr: -1 -> new: 50 CAL_MAG1_ID: curr: 0 -> new: 197644 CAL_MAG1_PRIO: curr: -1 -> new: 50

Screenshot / Media

No response

Flight Log

NA

Software Version

PX4 v1.14.0 Ubuntu version: 22.04 LTS ROS: Humble Gazebo: Garden

According to this https://github.com/PX4/PX4-Autopilot/issues/22148 modified the the sleep_count_limit= 5 min

Flight controller

PX4

Vehicle type

Multicopter

How are the different components wired up (including port information)

NA

Additional context

No response

faelern commented 3 weeks ago

Had the same problem on Arch using gazebo garden. In my case switching to gazebo harmonic solved the issue.