How PilotingSpeedChanged events for position, and attitude are calculated in the simulation environemnt?

Hi,
There are three sensors, namely, horizontal camera, vertical camera, and an ultrasound, modeled in the simulation environment. I could not find any IMU being modeled as a sensor on the bebop2 in Sphinx. Using the official SDK one can access these values by setting the appropriate callback.
In C:

ARCOMMANDS_Decoder_SetARDrone3PilotingStatePositionChangedCallback
ARCOMMANDS_Decoder_SetARDrone3PilotingStateSpeedChangedCallback
ARCOMMANDS_Decoder_SetARDrone3PilotingStateAttitudeChangedCallback

I was wondering how these values are calculated in the simulation environment.

Best,
N

The IMU is simulated by a model plugin with no sensor, that’s why you can’t see it. It’s quite similar to the official IMU sensor in gazebo but in a model plugin: gazebo/ImuSensor.cc at gazebo11 · osrf/gazebo · GitHub

1 Like

Hi Ocrave,
Thanks a lot for your prompt response. Are these values coming from an onboard visual-inertial estimate like what happens on the actual drone? What sensors are involved in the actual and the simulated drone for calculating these values?