Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dummy inertias for Gazebo simulation #339

Closed
wants to merge 3 commits into from

Conversation

eborghi10
Copy link

Inertias are required to launch a Gazebo simulation using the URDF files from microstrain_inertial_description. This code can also be added to your robot:

<!-- Parker IMU -->
<gazebo reference="parker_center_joint">
  <preserveFixedJoint>true</preserveFixedJoint>
</gazebo>
<gazebo reference="parker_joint">
  <preserveFixedJoint>true</preserveFixedJoint>
</gazebo>
<gazebo reference="parker">
  <sensor name="parker_imu" type="imu">
    <pose>0 0 0 0 0 0</pose>
    <always_on>true</always_on>
    <update_rate>0</update_rate>
    <visualize>false</visualize>
    <plugin filename="libgazebo_ros_imu_sensor.so" name="imu_plugin">
      <topicName>/parker/imu</topicName>
      <bodyName>parker</bodyName>
      <updateRateHZ>50.0</updateRateHZ>
      <xyzOffset>0 0 0</xyzOffset>
      <gaussianNoise>0</gaussianNoise>
      <rpyOffset>0 0 0</rpyOffset>
      <frameName>parker</frameName>
      <initialOrientationAsReference>false</initialOrientationAsReference>
    </plugin>
  </sensor>
</gazebo>

Signed-off-by: Emiliano Borghi <emiliano@smartmachine.nz>
Signed-off-by: Emiliano Borghi <emiliano@smartmachine.nz>
Signed-off-by: Emiliano Borghi <emiliano@smartmachine.nz>
@eborghi10 eborghi10 closed this Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant