Skip to content

Update the IMU sensor implementation to support general prims - #3094

Closed
GiulioRomualdi wants to merge 2 commits into
isaac-sim:mainfrom
GiulioRomualdi:imu_general_prim
Closed

GiulioRomualdi wants to merge 2 commits into
isaac-sim:mainfrom
GiulioRomualdi:imu_general_prim

Conversation

@GiulioRomualdi

Copy link
Copy Markdown
Contributor

Description

Refactored IMU sensor to support non-rigid prims by finding the nearest rigid ancestor and computing the fixed transform. Maintains compatibility with existing code.

Fixes #3088

Type of change

  • New feature (non-breaking change which adds functionality)

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist

  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@jtigue-bdai jtigue-bdai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@GiulioRomualdi thanks for the addition. can you please add a test for this feature in source/isaaclab/test/sensors/test_imu.py

@louislelay

Copy link
Copy Markdown
Contributor

Hi @GiulioRomualdi, nice work!

Do you think it could be generalized to handle not only Xforms but also Spheres? I tested your PR on a model converted from MJCF and applied it to the sites, but the transform was applied to the Sphere instead of the Xform, so no offset was computed.

See below:
image

@ooctipus

ooctipus commented Aug 14, 2025 •

Copy link
Copy Markdown
Collaborator

Thank you for the PR @GiulioRomualdi , this is a very nice observation!

After thinking about this feature for long time, I have a bit mix feeling on this.

This definitely making sensor attachment a lot more easier which is a great bonus, though I am a bit curious how clear to user this feature is. What if there is no rigid ancestor, will users complain because they were under impression they can attach sensor anywhere? Also, if we are going to move forward with this, we better make sure it can work beyond just xforms, and works with other sensors as well, etc ray caster, camera ...., maybe this should be a SensorBase implementation?

I am happy to move forward and help on this direction if we figure out a way to apply this feature too all sensors, and we can attach to any prim underneath the rigid object. But it seems right now it is still in a early exploitative phase. Anyway, thank you for bring inspiring and interesting idea and actively contribute to IsaacLab. I am very excited to review and help :))

@Mayankm96 Mayankm96 added enhancement New feature or request isaac-lab Related to Isaac Lab team labels Sep 12, 2025
bmccann-bdai added a commit to bmccann-bdai/IsaacLab that referenced this pull request Oct 28, 2025
kellyguo11 added a commit that referenced this pull request Dec 10, 2025
… body. (#3864)

# Description
Implement ability to attach an imu sensor to xform primitives in a usd
file. This PR is based on work by @GiulioRomualdi here:
#3094 Addressing issue #3088.

We considered more general implementations to account for all sensor
types, but found they all handle pose information too differently to
gain any benefit from a more general solution.

Fixes # (3088)

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- New feature (non-breaking change which adds functionality)


## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Signed-off-by: Brian McCann <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: James Tigue <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
@Mayankm96

Copy link
Copy Markdown
Contributor

Closing this MR as it has been merged in #3864.

Thank you for contributing the fix; it was very useful!

@Mayankm96 Mayankm96 closed this Dec 28, 2025
T-K-233 pushed a commit to ucb-bar/IsaacLab that referenced this pull request Dec 29, 2025
… body. (isaac-sim#3864)

# Description
Implement ability to attach an imu sensor to xform primitives in a usd
file. This PR is based on work by @GiulioRomualdi here:
isaac-sim#3094 Addressing issue isaac-sim#3088.

We considered more general implementations to account for all sensor
types, but found they all handle pose information too differently to
gain any benefit from a more general solution.

Fixes # (3088)

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- New feature (non-breaking change which adds functionality)


## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Signed-off-by: Brian McCann <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: James Tigue <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
Edify0991 pushed a commit to Edify0991/IsaacLab that referenced this pull request Jan 14, 2026
… body. (isaac-sim#3864)

# Description
Implement ability to attach an imu sensor to xform primitives in a usd
file. This PR is based on work by @GiulioRomualdi here:
isaac-sim#3094 Addressing issue isaac-sim#3088.

We considered more general implementations to account for all sensor
types, but found they all handle pose information too differently to
gain any benefit from a more general solution.

Fixes # (3088)

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- New feature (non-breaking change which adds functionality)


## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Signed-off-by: Brian McCann <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: James Tigue <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
raymondyu5 pushed a commit to raymondyu5/DexLab that referenced this pull request Jan 15, 2026
… body. (#3864)

# Description
Implement ability to attach an imu sensor to xform primitives in a usd
file. This PR is based on work by @GiulioRomualdi here:
isaac-sim/IsaacLab#3094 Addressing issue #3088.

We considered more general implementations to account for all sensor
types, but found they all handle pose information too differently to
gain any benefit from a more general solution.

Fixes # (3088)

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- New feature (non-breaking change which adds functionality)


## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Signed-off-by: Brian McCann <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: James Tigue <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
nitesh-subedi pushed a commit to nitesh-subedi/IsaacLab that referenced this pull request Feb 5, 2026
… body. (isaac-sim#3864)

# Description
Implement ability to attach an imu sensor to xform primitives in a usd
file. This PR is based on work by @GiulioRomualdi here:
isaac-sim#3094 Addressing issue isaac-sim#3088.

We considered more general implementations to account for all sensor
types, but found they all handle pose information too differently to
gain any benefit from a more general solution.

Fixes # (3088)

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- New feature (non-breaking change which adds functionality)


## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Signed-off-by: Brian McCann <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: James Tigue <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
modanesh pushed a commit to modanesh/Hetero-IsaacLab that referenced this pull request Jun 19, 2026
… body. (#3864)

# Description
Implement ability to attach an imu sensor to xform primitives in a usd
file. This PR is based on work by @GiulioRomualdi here:
isaac-sim/IsaacLab#3094 Addressing issue #3088.

We considered more general implementations to account for all sensor
types, but found they all handle pose information too differently to
gain any benefit from a more general solution.

Fixes # (3088)

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- New feature (non-breaking change which adds functionality)


## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Signed-off-by: Brian McCann <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: James Tigue <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
csj-275 pushed a commit to csj-275/IsaacLab that referenced this pull request Jul 8, 2026
… body. (isaac-sim#3864)

# Description
Implement ability to attach an imu sensor to xform primitives in a usd
file. This PR is based on work by @GiulioRomualdi here:
isaac-sim#3094 Addressing issue isaac-sim#3088.

We considered more general implementations to account for all sensor
types, but found they all handle pose information too differently to
gain any benefit from a more general solution.

Fixes # (3088)

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- New feature (non-breaking change which adds functionality)


## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Signed-off-by: Brian McCann <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: James Tigue <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Question] IMU Sensor Requires RigidBodyAPI on Target Prim

5 participants