AirSim
AirSim copied to clipboard
data mismatch between moveToPositionAsync and getMultirotorState().kinematics_estimated.position
Bug report
- AirSim Version: 1.2
- UE: 4.27
- OS Version: Windows 10
What's the issue you encountered?
I get a different height by getMultirotorState().kinematics_estimated.position than I set by moveToPositionAsync.For example, I drive the multirotor to 3 meters height
client.moveToZAsync(-3, 1).join()
then I print the position informaition
print(client.getMultirotorState().kinematics_estimated.position)
Here is what I got
<Vector3r> { 'x_val': 0.0,
'y_val': 0.0,
'z_val': -2.6221275329589844}
It shows that the height is 2.6 meters. I have tried many height parameters. Most of them are 0.4 meters away from the parameters I set.
Settings
"Vehicles": {
"SimpleFlight": {
"VehicleType": "SimpleFlight",
"DefaultVehicleState": "Armed",
"AutoCreate": true,
"PawnPath": "",
"EnableCollisionPassthrogh": false,
"EnableCollisions": true,
"AllowAPIAlways": true,
"EnableTrace": false
}
}
Thank you for reading and I need for your help urgently.
Hi @Cming7! This is the same you are facing in #4293. There is a lookahead margin you need to take into account.