-
Notifications
You must be signed in to change notification settings - Fork 26
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
PX4 Gazebo startup error on first execution due to gz_bridge timeout #21
Comments
@zahrakhan010 Maybe it's because of connection issue to Ignition server, you can try to turn off the firewall and try again: |
thank you for giving me suggestions, resolve the above bug, but now again im facing few issues, in terminal 2 run this command PX4_SYS_AUTOSTART=4002 PX4_GZ_MODEL_POSE="283.08,-136.22,3.86,0.00,0,-0.7" PX4_GZ_MODEL=x500_depth ./build/px4_sitl_default/bin/px4 px4 starting. INFO [px4] startup script: /bin/sh etc/init.d-posix/rcS 0 PX4 Exiting... ros2 run px4_ros_com offboard_control The output from Terminal 5 was: coe@coe-System-Product-Name:~/ws_offboard_control$ ros2 run px4_ros_com offboard_control Although the arm command was successfully sent, the drone does not fly. Please help me resolve these issues and debug the problem. |
@zahrakhan010 At first try PX4_GZ_STANDALONE=0 parameter like below: |
Since i'm new to ROS2, and i'm having difficulty figuring out how to bridge the LiDAR data to ROS2. |
@zahrakhan010 I have not done that myself, but I think for lidar you should use a version of x500 drone which has lidar on it, and if there is a need for bridging, you can use ros_gz_bridge, something like below command (change lidar topic name, and type of message to pointcloud2 if needed): |
Thank you so much for your help in resolving the previous issues I was facing. I really appreciate it! Now, I have two concerns:
ros2 topic echo /fmu/in/vehicle_visual_odometry I get the following error:
Could you please help me resolve these problems? |
When executing the following command in the terminal:
PX4_SYS_AUTOSTART=4002 PX4_GZ_MODEL_POSE="268.08,-128.22,3.86,0.00,0,-0.7" PX4_GZ_MODEL=x500_depth ./build/px4_sitl_default/bin/px4
The system throws an error with the following output:
INFO [init] starting gazebo with world: /home/coe/PX4-Autopilot/Tools/simulation/gz/worlds/default.sdf
INFO [gz_bridge] world: default, model name: x500_depth_0, simulation model: x500_depth
ERROR [gz_bridge] Service call timed out. Check GZ_SIM_RESOURCE_PATH is set correctly.
ERROR [gz_bridge] Task start failed (-1)
ERROR [init] gz_bridge failed to start and spawn model
ERROR [px4] Startup script returned with return value: 256
The world file is located in ~/PX4-Autopilot/Tools/simulation/gz/worlds, and I have set the environment variable GZ_SIM_RESOURCE_PATH in my .bashrc:
export GZ_SIM_RESOURCE_PATH=~/.gz/models
Gazebo opens with the warehouse world, but the drone does not spawn until I re-run the command. The error seems to occur only during the first execution. Any suggestions or ideas on what might be causing this issue?
The text was updated successfully, but these errors were encountered: