Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imu values from AirSim #4

Closed
plushpluto opened this issue Jun 21, 2020 · 10 comments
Closed

Imu values from AirSim #4

plushpluto opened this issue Jun 21, 2020 · 10 comments

Comments

@plushpluto
Copy link

I am trying to replicate this work using Airsim.
I didn't know how to take the imu values from airsim. So, can I use imu from MAVROS instead of Gazebo?

#imu_topic: "/iris_0/imu_gazebo"
imu_topic: "/mavros/imu/data"

@robin-shaun
Copy link
Owner

sure, but if using vio, you need to modify vio configuration for imu

@plushpluto
Copy link
Author

Oh!! Can you pls guide me?

This is what i tried:: :)

imu_topic: "/mavros/imu/data"
estimate_extrinsic: 1

@running-mars
Copy link
Contributor

emm, did you mean that you need imu data from AirSim? Or imu data from Gazebo through MAVROS?

@running-mars
Copy link
Contributor

If you just want to get imu data through AirSim, you may refer to this code:
hello_drone.py
There are some lines in the code above as follows about imu:

import setup_path 
import airsim
client = airsim.MultirotorClient()
imu_data = client.getImuData()

@running-mars
Copy link
Contributor

If you need the imu data from MAVROS, you may have to get the IMU data using AirSim's API and do some data processing and transfer them using MAVROS.

@running-mars
Copy link
Contributor

Besides, you also raise an issue here:
AirSim

@plushpluto
Copy link
Author

I would like to try both. At the moment, ROS/Gazebo seems to work. For some reason, Airsim is not completely trustable yet (but looks good though). Anyways, thanks. As you said, I will try and get the IMU from Airsim and transfer them using MAVROS.

@running-mars
Copy link
Contributor

After you successfully complete, welcome to share your experience here with everyone!

@plushpluto
Copy link
Author

Sure. I have already raised an issue with Airsim group and working with them. Will let you know how it goes. ;)

@plushpluto
Copy link
Author

Multiple people have raised multiple issues regarding this, which is causing some important changes to be made. They are making some changes in their end on the ROS repo. That's why the delay along with some delays due to my paper submission. At the moment, I am following the recent repos https://github.com/MichaelHannalla/airsim_ros_bridge and https://github.com/microsoft/AirSim/tree/master/ros/src/airsim_ros_pkgs for updates. Please look out for changes in microsoft/AirSim#2743 microsoft/AirSim#2369 microsoft/AirSim#2396. Meanwhile, I'll try and keep things updated as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants