updaterate in libgazebo_ros_imu [closed]
Hi
I'm trying to simulate an IMU with the plugin libgazebo_ros_imu, but I have one problem. I've defined in my .urdf the following code:
<gazebo>
<controller:gazebo_ros_imu name="imu_controller" plugin="libgazebo_ros_imu.so">
<alwaysOn>true</alwaysOn>
<updateRate>50.0</updateRate>
<bodyName>imu_link</bodyName>
<topicName>odom/imu</topicName>
<gaussianNoise>2.89e-08</gaussianNoise>
<xyzOffsets>0 0 0</xyzOffsets>
<rpyOffsets>0 0 0</rpyOffsets>
<interface:position name="imu_position"/>
</controller:gazebo_ros_imu>
</gazebo>
I set the frequency to 50 Hz, but when I do rostopic hz I get that the node is publishing at 1000 Hz (more or less). I've checked the plugin source code and I've seen that it gets all the params except the updateRate, so I think that thats the reason why I can't set the frequency I want.
I'm I right? And then, what can I do for changing the frequency?
I'm using Fuerte in Ubuntu 12.04
Thanks in advance. Regards!