Robotics StackExchange | Archived questions

IMU sensor plugin libgazebo_ros_imu.so: strange data

Hello community,

I have a problem with the simulated data of the "libgazebo_ros_imu.so" plugin.

Here is my urdf code:

<robot>
<link name="imu_link">
    <inertial>
        <mass value="${dummy_mass}" />
        <origin xyz="0 0 0" />
        <inertia ixx="${dummy_inertia}" ixy="0.0" ixz="0.0"
                 iyy="${dummy_inertia}" iyz="0.0" 
                 izz="${dummy_inertia}" />
    </inertial>     
        <visual>
        <origin xyz="0 0 0" rpy="0 0 0" />
        <geometry>
            <box size = "0.1 0.1 0.1"/> 
                </geometry>
        </visual>
    <collision>         
        <geometry>
            <box size = "0.1 0.1 0.1"/> 
        </geometry>
    </collision>     
    </link>

<joint name="imu_joint" type="fixed">
    <axis xyz="0 0 0"/>
    <origin xyz="0.05 0 0.15" rpy="0 0 0" />
    <parent link="base_link"/>
    <child link="imu_link" />
</joint>

<gazebo>    
    <plugin name="imu_plugin" filename="libgazebo_ros_imu.so">
        <alwaysOn>true</alwaysOn>       
        <bodyName>imu_link</bodyName>
        <topicName>imu_data</topicName>
        <serviceName>imu_service</serviceName>
        <gaussianNoise>0.0</gaussianNoise>
        <updateRate>10.0</updateRate> 
    </plugin>
</gazebo>
</robot>

With these settings I can read from the rostopic "imu_data", but the simulated data is really strange and not fitting to the movement of the robot at all. It seems as it just ignores the movement. For example, even when standing completely still, I see very high values for up / down movement, they just seem randomly generated.

When moving forward or backward, it doesnt seem to affect the simulated imu data as well.

Here are some screenshots. Position of the camera was behind the robot looking forward. Imagine that the arrow that shows the imu sensor data flips up and down at a very high rate during a short period of time. The robot isnt moving at all.

IMU data 1 IMU data 3 IMU data 4

Any tips for improvement?

regards psei

Asked by psei on 2013-10-14 07:26:55 UTC

Comments

Your images seem to be broken. Can you try updating them?

Asked by nkoenig on 2013-10-16 16:57:55 UTC

What do you mean by "broken"? Can't you see them?

Asked by psei on 2013-10-17 03:04:21 UTC

Right, I can't see them. I believe it's because the images are hosted on a webserver using HTTPS, but the certificate is not verified.

Asked by nkoenig on 2013-10-17 10:29:02 UTC

I changed the links from https to http, does it work now?

Asked by psei on 2013-10-21 02:40:04 UTC

I am having the same issue, did you solve the problem?

Asked by EFernandes on 2014-02-06 07:04:57 UTC

I am facing the same situation here. Did you find a solution to this problem? Please help.

Asked by keshav_sarraf on 2014-05-28 00:37:40 UTC

i have the same problem. did you find any solution for this?

Asked by spour on 2014-09-09 14:50:41 UTC

can you post an urdf or world file that I can load to reproduce the issue?

Asked by hsu on 2014-09-12 17:55:18 UTC

can you post an urdf or world file that I can load to reproduce the issue? Thanks!

Asked by hsu on 2014-09-12 17:55:48 UTC

Same issue here with the same urdf under ros-indigo and gazebo7.

Asked by GuillaumeB on 2017-01-02 11:11:14 UTC

Answers