Repository navigation
Update the IMU sensor implementation to support general prims - #3094
GiulioRomualdi wants to merge 2 commits into
Conversation
jtigue-bdai
left a comment
There was a problem hiding this comment.
@GiulioRomualdi thanks for the addition. can you please add a test for this feature in source/isaaclab/test/sensors/test_imu.py
|
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. |
|
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 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 :)) |
…d file. This PR is based on work by @GiulioRomualdi here: isaac-sim#3094
… 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]>
|
Closing this MR as it has been merged in #3864. Thank you for contributing the fix; it was very useful! |
… 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]>
… 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]>
… 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]>
… 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]>
… 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]>
… 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]>

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
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there