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

Expands functionality of FrameTransformer to allow multi-body transforms #858

Merged
merged 20 commits into from
Oct 5, 2024

Conversation

jsmith-bdai
Copy link
Collaborator

@jsmith-bdai jsmith-bdai commented Aug 22, 2024

Description

Update FrameTransformer to handle 2 new functionalities:

  • Target frames that aren't children of the source frame prim_path
  • Target frames that are based upon the source frame prim_path

These new changes mean that the frame names will most likely be different than the configured order - but this was always a possibility to the way the regex is parsed. To be safe, users need to use frame_names to determine indexing into FrameTransformerData.

Test cases have been added for both of these new functionalities - thanks @Mayankm96!

Also, the run script has been updated slightly as the previous indexing was off by 1.

Fixes #857 #294

Type of change

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

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

Copy link
Collaborator

@jtigue-bdai jtigue-bdai left a comment

Choose a reason for hiding this comment

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

Looks good. Just would be good to warn that only Rigid Body Prims are eligible.

@jsmith-bdai jsmith-bdai marked this pull request as ready for review August 26, 2024 20:30
@pascal-roth pascal-roth added enhancement New feature or request dev team Issue or pull request created by the dev team labels Aug 28, 2024
@Mayankm96
Copy link
Contributor

I added a very simple test that queries frame offset to the source prim. I thought this was the initial question about the frame transformer bug. The issue persists. Could you take a look?

https://github.com/isaac-sim/IsaacLab/blob/feature/add_external_body_to_frame_transformer/source/extensions/omni.isaac.lab/test/sensors/test_frame_transformer.py#L402

@jsmith-bdai jsmith-bdai changed the title Feature/add external body to frame transformer Expand funcitonality of FrameTransformer Sep 6, 2024
@jsmith-bdai jsmith-bdai changed the title Expand funcitonality of FrameTransformer Expand functionality of FrameTransformer Sep 6, 2024
…transformer/frame_transformer.py

Signed-off-by: James Smith <142246516+jsmith-bdai@users.noreply.github.com>
jsmith-bdai and others added 3 commits September 17, 2024 08:29
…transformer/frame_transformer_cfg.py

Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
Signed-off-by: James Smith <142246516+jsmith-bdai@users.noreply.github.com>
…transformer/frame_transformer_cfg.py

Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
Signed-off-by: James Smith <142246516+jsmith-bdai@users.noreply.github.com>
@Mayankm96 Mayankm96 changed the title Expand functionality of FrameTransformer Expands functionality of FrameTransformer to allow multi-body transforms Sep 19, 2024
@Mayankm96
Copy link
Contributor

@Dhoeller19 said he'd like to go over the logic and check it before we merge. Slating it for 1.3 release now

@jsmith-bdai
Copy link
Collaborator Author

@Dhoeller19 @Mayankm96 Can we try to merge this soon? It's been up for some time now and I'd hate for it to get out of sync

@Mayankm96
Copy link
Contributor

Please update the changelog before merging @jsmith-bdai

@Dhoeller19 Dhoeller19 merged commit 0ef582b into main Oct 5, 2024
3 of 5 checks passed
@Dhoeller19 Dhoeller19 deleted the feature/add_external_body_to_frame_transformer branch October 5, 2024 07:47
iamdrfly pushed a commit to iamdrfly/IsaacLab that referenced this pull request Nov 21, 2024
…rms (isaac-sim#858)

# Description

Update FrameTransformer to handle 2 new functionalities:
* Target frames that aren't children of the source frame prim_path
* Target frames that are based upon the source frame prim_path

These new changes mean that the frame names will most likely be
different than the configured order - but this was always a possibility
to the way the regex is parsed. To be safe, users need to use
`frame_names` to determine indexing into `FrameTransformerData`.

Test cases have been added for both of these new functionalities -
thanks @Mayankm96!

Also, the run script has been updated slightly as the previous indexing
was off by 1.


Fixes isaac-sim#857 isaac-sim#294

## Type of change

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

## Checklist

- [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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev team Issue or pull request created by the dev team enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable FrameTransformer to also provide pose of objects external to articulation
5 participants