Skip to content

Instantly share code, notes, and snippets.

@mathewthomas916
Created July 28, 2020 19:29
Show Gist options
  • Save mathewthomas916/3a2b6d38b4f7070fa92fb0d277ca3b7a to your computer and use it in GitHub Desktop.
Save mathewthomas916/3a2b6d38b4f7070fa92fb0d277ca3b7a to your computer and use it in GitHub Desktop.
ROS2 URDF Gazebo Sensor
<gazebo reference="imu_link">
<sensor name="br_imu" type="imu">
<always_on>true</always_on>
<update_rate>100</update_rate>
<imu>
<angular_velocity>
<x>
<noise type="gaussian">
<mean>0.0</mean>
<stddev>2e-4</stddev>
</noise>
</x>
<y>
<noise type="gaussian">
<mean>0.0</mean>
<stddev>2e-4</stddev>
</noise>
</y>
<z>
<noise type="gaussian">
<mean>0.0</mean>
<stddev>2e-4</stddev>
</noise>
</z>
</angular_velocity>
<linear_acceleration>
<x>
<noise type="gaussian">
<mean>0.0</mean>
<stddev>1.7e-2</stddev>
</noise>
</x>
<y>
<noise type="gaussian">
<mean>0.0</mean>
<stddev>1.7e-2</stddev>
</noise>
</y>
<z>
<noise type="gaussian">
<mean>0.0</mean>
<stddev>1.7e-2</stddev>
</noise>
</z>
</linear_acceleration>
</imu>
<plugin name="bytes_imu" filename="libgazebo_ros_imu_sensor.so">
<ros>
<namespace>imu</namespace>
<remapping>~/out:=data</remapping>
</ros>
<initial_orientation_as_reference>false</initial_orientation_as_reference>
</plugin>
</sensor>
</gazebo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment