Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ashirsat opened this issue Aug 7, 2024 · 1 comment

Comments

@ashirsat
Copy link

ashirsat commented Aug 7, 2024

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

  • SENS_BOARD_X_OFF: curr: 0.0000 -> new: 0.0000
  • SENS_DPRES_OFF: curr: 0.0000 -> new: 0.0010
    INFO [dataman] data manager file './dataman' size is 7866640 bytes
    INFO [init] starting gazebo with world: /home/local/PX4-Autopilot/Tools/simulation/gz/worlds/large_world_with_many_small_models.sdf
    INFO [init] PX4_GZ_MODEL_POSE set, spawning at: 0,0,1.25,0,0,0
    INFO [gz_bridge] world: large_world_with_many_small_models, model name: custom_robot_model_with_segmentation_camera, simulatio
    INFO [gz_bridge] Requested Model Position: 0,0,1.25,0,0,0
    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

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 #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

@ashirsat ashirsat changed the title [Bug] [Bug] Flight simulation with gz garden, ros humble, and px4 v1.14 exits with timeout Aug 7, 2024
@faelern
Copy link

faelern commented Aug 20, 2024

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

@github-actions github-actions bot added the stale label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants