Gazebo | Ignition | Community
Ask Your Question

imu sensor on actor not recording angular velocity

asked 2017-09-08 03:27:01 -0600

Edwin Walsh gravatar image


I added an imu sensor to a link placed in an animated actor object

<actor name="imu_cam">
<link name="imu_link">
    <sensor name="imu" type="imu">...
    <trajectory id="0" type="__default__">
            <pose>-0.1325 0.3200 0.6535 -1.6478 0.0000 0.0340</pose>
            <pose>-0.1325 0.3200 0.6535 -1.6466 0.0000 0.0321</pose>


However, when I read the published sensor data, all I get as angular velocity values is noise. I am guessing (but this is a little harder to confirm) that the linear acceleration values are also only noise values added to the projected gravitational vector.

Is this a bug? Or are animated actor objects not intended for this kind of experiment? The orientation is reported correctly, and also the camera sensor data is recorded correctly. The only problem is that the link object virtually seems to have no velocity component (not linear and not angular).

Can someone think of a workaround to this problem?

The main reason for using the animated actor object is because I want to simulate (pseudo random) head movement. If there is a better way of simulating this, it could also solve my problem.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-09-08 09:49:42 -0600

chapulina gravatar image

As you suspected, actors are not the right tool for this experiment. They are animated instead of simulated, which means their pose is set to precise values at every time-step, instead of through the application of forces and dynamics.

One workaround would be to compute the velocity yourself based on position data over time.

Other solutions might involve not using actors, but a rigid model of a head, and making it move randomly by applying random forces every time-step.

This issue is also relevant.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-09-08 03:27:01 -0600

Seen: 444 times

Last updated: Sep 08 '17