Gazebo | Ignition | Community
Ask Your Question
0

How to simulate sensor feedback from an accelerometer/gryoscope

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

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
1

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

silvio.traversaro gravatar image

You should probably check the IMU (Inertial Measurement Unit) sensor, that simulates both an accelerometer and a gyroscope: http://gazebosim.org/tutorials?tut=se... .

edit flag offensive delete link more

Comments

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

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

There is an example on how to build a plugin accessing a contact sensor in http://gazebosim.org/tutorials?tut=contact_sensor . By comparing the API of ContactSensor with the one of ImuSensor (http://osrf-distributions.s3.amazonaws.com/gazebo/api/5.0.0/classgazebo_1_1sensors_1_1ImuSensor.html#details) , getting a working plugin for an Imu should be trivial.

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

Question Tools

Stats

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

Seen: 43,295 times

Last updated: Apr 12 '15