Gazebo | Ignition | Community
Ask Your Question

How to simulate sensor feedback from an accelerometer/gryoscope

asked 2015-04-12 00:46:45 -0500

Cerin gravatar image

How would you create a sensor in Gazebo that mimics an accelerometer and gyroscope? Does it have to be explicitly defined with a <sensor> tag, or would this be done with a plugin that tracks the COM and orientation over time and does the math to simulate measuring acceleration and rotation?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-12 03:50:20 -0500

silvio.traversaro gravatar image

You should probably check the IMU (Inertial Measurement Unit) sensor, that simulates both an accelerometer and a gyroscope: .

edit flag offensive delete link more


Is there somewhere that explains how to access this sensor programmatically in a plugin?

Cerin gravatar imageCerin ( 2015-04-12 10:56:52 -0500 )edit

There is an example on how to build a plugin accessing a contact sensor in . By comparing the API of ContactSensor with the one of ImuSensor ( , getting a working plugin for an Imu should be trivial.

silvio.traversaro gravatar imagesilvio.traversaro ( 2015-04-12 14:04:19 -0500 )edit

Question Tools


Asked: 2015-04-12 00:46:45 -0500

Seen: 43,184 times

Last updated: Apr 12 '15