SwiftGust / ardupilot_gazebo

Repository for ArduPilot & Gazebo Software In Loop Simulation Interfaces, Models
74 stars 89 forks source link

Crash with gazebo9 #32

Open galdalali opened 3 years ago

galdalali commented 3 years ago

Hey there,

I'm having trouble running ardupilot_gazebo (master branch) with gazebo 9. gazebo standalone works fine but when running with "gazebo --verbose iris_ardupilot.world" I don't get any errors but the gazebo wont start.

What could be the issue?

Thanks, Gal.

ubuntu@ubuntu-VirtualBox:~/sim/ardupilot_gazebo/build$ gazebo --verbose iris_ardupilot.world
Gazebo multi-robot simulator, version 9.16.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
Gazebo multi-robot simulator, version 9.16.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 10.0.2.15
Warning [parser.cc:759] XML Attribute[xmlns:xacro] in element[sdf] not defined in SDF, ignoring.
[Msg] Loading world file [/home/ubuntu/sim/ardupilot_gazebo/worlds/iris_ardupilot.world]
[Wrn] [Event.cc:61] Warning: Deleting a connection right after creation. Make sure to save the ConnectionPtr from a Connect call
[Msg] [ArduPilotPlugin] Model :iris
[Msg] [ArduPilotPlugin] Model :  iris_demo::iris::base_link
[Msg] [ArduPilotPlugin] Model :    base_link_collision
[Msg] [ArduPilotPlugin] Model :      
[Msg] [ArduPilotPlugin] Model :  iris_demo::iris::iris/ground_truth/odometry_sensorgt_link
[Msg] [ArduPilotPlugin] Model :  iris_demo::iris::iris/imu_link
[Msg] [ArduPilotPlugin] Model :  iris_demo::iris::rotor_0
[Msg] [ArduPilotPlugin] Model :    rotor_0_collision
[Msg] [ArduPilotPlugin] Model :      
[Msg] [ArduPilotPlugin] Model :  iris_demo::iris::rotor_1
[Msg] [ArduPilotPlugin] Model :    rotor_1_collision
[Msg] [ArduPilotPlugin] Model :      
[Msg] [ArduPilotPlugin] Model :  iris_demo::iris::rotor_2
[Msg] [ArduPilotPlugin] Model :    rotor_2_collision
[Msg] [ArduPilotPlugin] Model :      
[Msg] [ArduPilotPlugin] Model :  iris_demo::iris::rotor_3
[Msg] [ArduPilotPlugin] Model :    rotor_3_collision
[Msg] [ArduPilotPlugin] Model :      
[Msg] [ArduPilotPlugin] Model :  iris_demo::cam_link
[Msg] [ArduPilotPlugin] Model :  iris_demo::iris::iris/ground_truth/odometry_sensorgt_joint
[Msg] [ArduPilotPlugin] Model :  iris_demo::iris::iris/imu_joint
[Msg] [ArduPilotPlugin] Model :  iris_demo::iris::rotor_0_joint
[Msg] [ArduPilotPlugin] Model :  iris_demo::iris::rotor_1_joint
[Msg] [ArduPilotPlugin] Model :  iris_demo::iris::rotor_2_joint
[Msg] [ArduPilotPlugin] Model :  iris_demo::iris::rotor_3_joint
ubuntu@ubuntu-VirtualBox:~/sim/ardupilot_gazebo/build$
SwiftGust commented 3 years ago

Hi, sorry for late reply. Are you running gazebo in the virtual machine? As I described under requirement section, Gazebo requires full 3D graphics & display which is limited under virtual environment. If just gazebo works in your VM then does insert any models or iris_demo model works in empty world?

Start gazebo and insert models $ gazebo --verbose

image