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 plugin #50

Open
tongtybj opened this issue May 1, 2018 · 2 comments
Open

IMU plugin #50

tongtybj opened this issue May 1, 2018 · 2 comments

Comments

@tongtybj
Copy link

tongtybj commented May 1, 2018

I am considering to use imu plugin in gazebo.
What is the main difference between hector imu plugin and GazeboRosImuSensor?

@meyerj
Copy link
Member

meyerj commented May 2, 2018

The GazeboRosImuSensor plugin was only added/merged recently (ros-simulation/gazebo_ros_pkgs#363), while the IMU plugin in hector_gazebo dates back to 2012. Back then there was no proper IMU plugin in ros-gazebo-pkgs, that

  • includes gravity in the acceleration output, like real accelerometers would do,
  • can simulate sensor drift and a non-zero initial bias,
  • also applies an error to the orientation output, which is correlated to the simulated accelerometer drift, and
  • is reconfigurable through dynamic_reconfigure and services at run-time to adjust the error parameters or to "calibrate" the IMU (reset the bias state to zero).

The approach of GazeboRosImuSensor, that uses Gazebo's ImuSensor internally, is definitely cleaner and should be preferred for new projects. But I have not compared the output of both plugins in detail yet. I think the last two "features" are still unique to hector_gazebo_ros_imu.

Another IMU plugin I am aware of is provided by the rotors_simulator.

@tongtybj
Copy link
Author

tongtybj commented May 2, 2018

@meyerj

Thank you for your kind explanation! I also agree that the last two features are important. Hope GazeboRosImuSensor can also implement these features.

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

2 participants