Skip to content

Conversation

@Milotrince
Copy link
Contributor

@Milotrince Milotrince commented Nov 9, 2025

Description

  • Fix IMU gravity
  • Fix IMU linear acceleration calculation when there is pos offset
  • Rename axes_skew to cross_axis_coupling for clarity
  • Update IMU test for more coverage

Related Issue

Resolves #1959

Motivation and Context

How Has This Been / Can This Be Tested?

Updated test_sensors.py::test_imu_sensor

Screenshots (if appropriate):

Checklist:

  • I read the CONTRIBUTING document.
  • I followed the Submitting Code Changes section of CONTRIBUTING document.
  • I tagged the title correctly (including BUG FIX/FEATURE/MISC/BREAKING)
  • I updated the documentation accordingly or no change is needed.
  • I tested my changes and added instructions on how to test it for reviewers.

Comment on lines -123 to -130
@gs.assert_built
def set_acc_bias(self, bias, envs_idx=None):
self._set_metadata_field(bias, self._shared_metadata.acc_bias, field_size=3, envs_idx=envs_idx)

@gs.assert_built
def set_gyro_bias(self, bias, envs_idx=None):
self._set_metadata_field(bias, self._shared_metadata.gyro_bias, field_size=3, envs_idx=envs_idx)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed the set_acc_* and set_gyro_* functions since can use set_* from the NoisySensorMixin instead; having these APIs introduce duplicity and also don't work properly in some cases because of tensor copying not modifying the original metadata field

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.

2 participants