microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.25k stars 4.52k forks source link

Getting Acceleration #487

Closed hngenc closed 6 years ago

hngenc commented 6 years ago

Is there an API call to get the drone's acceleration? I'd like something like the getVelocity() function in RpcLibClient.hpp

The main reason I want this is because I'd like to populate ROS IMU messages. I can populate the velocity and orientation fields myself, but not the acceleration fields.

Ricardus312 commented 6 years ago

Maybe I can help you if you provide more information:

hngenc commented 6 years ago

Thanks for your response, @Ricardus312!

Ricardus312 commented 6 years ago

Well, it seems we both have the same problem (https://github.com/Microsoft/AirSim/issues/476). I haven't figured out how to get the acceleration from the IMU yet, but I think I am pretty close from it. I will share with you all what I have discovered until now, maybe it could be useful for you:

These are all my insights until now, I hope this maybe useful for you. If you discover before me how to get that IMU data, please share with me!!!

Regards

sytelus commented 6 years ago

We have added new APIs to get angular velocity (along with other kinematics quantities). Please see https://github.com/Microsoft/AirSim/blob/master/docs/apis.md#getmultirotorstate.

For cars, this is available in getCarState API.

Note that above are ground truth quantities and you should not use it as sensor data. We'll be adding sensor APIs as well soon.

Fab7c4 commented 6 years ago

Hey @sytelus , are there any news regarding sensor API's? I could not find a specific issue for that yet.

DrifterFun commented 5 years ago

Is there any updating about add adding sensor APIs (For IMU & GPS etc)?