Gazebo | Ignition | Community
Ask Your Question

Physics Glitching, Velocity NaN

asked 2015-07-28 07:25:01 -0500

jake.anq gravatar image

I am running a ROS-based simulation involving a quadcopter from the hector_quadrotor packages. While driving the quadcopter manually, it is fairly easy to crash the quadcopter in such a way that the physics glitches and causes the model to reposition itself at the origin (usually) and refuse to accept further input other than rotation on the spot. It often drifts randomly at this time as well.

After the problem has occurred, calling the /gazebo/getmodelstate ROS service reveals that the linear and angular velocities of the quadcopter are NaN:

$ rosservice call /gazebo/get_model_state "model_name: 'quadrotor' \
relative_entity_name: ''" 
    x: 0.0
    y: 0.0
    z: 0.0
    x: 0.0
    y: 0.0
    z: 0.0
    w: 1.0
    x: nan
    y: nan
    z: nan
    x: nan
    y: nan
    z: nan
success: True
status_message: GetModelState: got properties

I am using a fully-updated ROS Hydro install on Ubuntu 14.04 with Gazebo v2.2.3.

The ideal solution would be to prevent crashes causing the models to glitch out at all, however if there was a way to reset a model to fix the problem without requiring Gazebo to be relaunched it would work for me.

Thank you for your help and please let me know if there's any other information that might be helpful.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-08-03 20:12:12 -0500

caioaamaral gravatar image

Got the same problem here. @jake.anq did you manage to solve this issue? I'm using ROS Kinetic on Ubuntu 16.04 and Gazebo 7.16.0

edit flag offensive delete link more

Question Tools


Asked: 2015-07-28 07:25:01 -0500

Seen: 1,796 times

Last updated: Aug 03 '20