Quadcopter simulation unstable in Gazebo
Hi, I am working with ROS kinetic,Gazebo 7. Trying for simple arming and takeoff of quadcopter in gazebo simulation. When starting the simulation the quad doesn't stay stable. C:\fakepath\gazebo_1.gif
And when tried to arm the quad using /mavros/cmd/arming the props gets detached from frame.C:\fakepath\gazebo_1-2.gif
The SDF file for the quadcopter isC:\fakepath\iris.sdf
Please provide with the solution for a stable takeoff and landing.
Update:After making some changes to the model the quad stays stable upon spawning.But as I provide the takeoff command it becomes unstable and crashes. Any particular reason for this behavior? I am using PX4 flight stack with gazebo simulation and plugins available with Iris model for controlling the drone.
Asked by zaccer on 2019-09-09 03:42:13 UTC
Comments
to me it seems that there is something wrong with the joint controllers. Maybe extreme PID values or so, depending on what controllers you use. Another possibility is badly defined model. Too light or too heavy parts, incorrect inertia matrices? Those things are the most usual causes of unstable simulations.
Asked by kumpakri on 2019-09-09 08:34:08 UTC
Hi,I have used plugin that is available with iris model for px4,so PID values used were the same as used for iris model, also the mass of the propellers were taken to be as close to the real value as possible.that is 22 grams and the inertia matrices were calculated from a cad software in which the model was made.
Asked by zaccer on 2019-09-09 08:58:51 UTC
You can also try to look through the other questions on px4. Maybe this answer holds some tips. Maybe there are some specific problems for drone simulation. I haven't try to simulate drones so I cannot help any further.
Asked by kumpakri on 2019-09-09 09:08:40 UTC
Thanks for the help.
Asked by zaccer on 2019-09-09 23:17:08 UTC