MikeS96 / autonomous_landing_uav

ROS packages of the Autonomous landing system of a UAV in Gazebo
MIT License
166 stars 54 forks source link

gazebo freezing on start #7

Closed offjangir closed 3 years ago

offjangir commented 3 years ago

[INFO] [1623594537.671369, 0.000000]: Waiting for service /gazebo/spawn_sdf_model [ INFO] [1623594538.017624004]: waitForService: Service [/gazebo/set_physics_properties] is now available. [ INFO] [1623594538.049461517, 0.011000000]: Physics dynamic reconfigure ready. [INFO] [1623594538.275724, 0.228000]: Calling service /gazebo/spawn_sdf_model [INFO] [1623594538.471279, 0.355000]: Spawn status: SpawnModel: Successfully spawned entity [ INFO] [1623594538.682087368, 0.355000000]: Camera Plugin: Using the 'robotNamespace' param: 'quad_f450_camera' [ INFO] [1623594538.684717923, 0.355000000]: Camera Plugin (ns = quad_f450_camera) , set to "quad_f450_camera" [vehicle_spawn_reaperj_19643_1941893159782321190-5] process has finished cleanly log file: /home/reaperj/.ros/log/af00adae-cc53-11eb-b4a9-24ee9aec6e09/vehicle_spawn_reaperj_19643_1941893159782321190-5.log Segmentation fault (core dumped) [gazebo-3] process has died [pid 19685, exit code 139, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode /home/reaperj/catkin_ws/src/PX4-Autopilot/Tools/sitl_gazebo/worlds/empty_world.world name:=gazebo log:=/home/reaperj/.ros/log/af00adae-cc53-11eb-b4a9-24ee9aec6e09/gazebo-3.log]. log file: /home/reaperj/.ros/log/af00adae-cc53-11eb-b4a9-24ee9aec6e09/gazebo-3.log

I have placed everything correctly and Started everything correctly but even if i directly launch grass_pad.world by gazebo it freezes on start. I am able to launch iris fpv in same world and it works but quad_f450_camera hangs everything . Screenshot from 2021-06-13 19-31-46

I used your aruco marker in and empty world. launched iris worked fine. i used downward facing camera and get hanged here.

MikeS96 commented 3 years ago

Hi @offjangir,

This problem usually happens when there is a mismatch between file names. e.g., the filename of the sdf for the propeller's mesh is not found.

I would suggest you to debug carefully. First (using SITL) spawn the camera model into a simpler Gazebo model and perform a takeoff. Spawn the Gazebo world using a Vanilla model like Iris (Takeoff again). At this point you should have identified the problem. Remember that you can simply change world files or vehicles through the ROS launch files.

Hope it helps.