Skip to content

Adds math tests for transforms, rotations, and conversions (#103) - #2801

Merged
kellyguo11 merged 8 commits into
isaac-sim:mainfrom
jtigue-bdai:jat/feat/new_math_tests
Jul 10, 2025
Merged

kellyguo11 merged 8 commits into
isaac-sim:mainfrom
jtigue-bdai:jat/feat/new_math_tests

Conversation

@jtigue-bdai

@jtigue-bdai jtigue-bdai commented Jun 27, 2025 •

Copy link
Copy Markdown
Collaborator

Description

this PR adds tests for:

  • scale_transform
  • unscale_transform
  • saturate
  • normalize
  • copysign
  • convert_quat
  • quat_conjugate
  • quat_from_euler_xyz
  • quat_from_matrix
  • euler_xyz_from_quat
  • matrix_from_euler
  • quat_from_angle_axis
  • axis_angle_from_quat
  • skew_symmetric_matrix
  • combine_transform
  • subtract_transform
  • compute_pose_error

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • 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

@jtigue-bdai jtigue-bdai self-assigned this Jun 30, 2025
Comment thread source/isaaclab/test/utils/test_math.py Resolved
Comment thread source/isaaclab/test/utils/test_math.py Resolved
Comment thread source/isaaclab/test/utils/test_math.py Resolved
Comment thread source/isaaclab/test/utils/test_math.py Resolved
Comment thread source/isaaclab/test/utils/test_math.py Resolved
Comment thread source/isaaclab/test/utils/test_math.py Resolved
Comment thread source/isaaclab/test/utils/test_math.py Resolved
Comment thread source/isaaclab/test/utils/test_math.py Resolved
Comment thread source/isaaclab/test/utils/test_math.py Resolved
Comment thread source/isaaclab/test/utils/test_math.py Resolved
Signed-off-by: James Tigue <[email protected]>
@jtigue-bdai
jtigue-bdai marked this pull request as ready for review June 30, 2025 13:50

@ooctipus ooctipus 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.

This is looking really good, Thanks James!

@kellyguo11 kellyguo11 changed the title Add math tests for transforms, rotations, and conversions (#103) Adds math tests for transforms, rotations, and conversions (#103) Jul 9, 2025
@kellyguo11

Copy link
Copy Markdown
Contributor

looks like a couple of the tests are failing in CI, is that expected?

@jtigue-bdai

Copy link
Copy Markdown
Collaborator Author

looks like a couple of the tests are failing in CI, is that expected?

Nope not expected. Let me take a look.

@jtigue-bdai

Copy link
Copy Markdown
Collaborator Author

looks like a couple of the tests are failing in CI, is that expected?

Nope not expected. Let me take a look.

@kellyguo11 fixed the issue. it was the compute_pose_error changes. Once I reverted those and fixed the test it seemed to work on my machine.

@jtigue-bdai

Copy link
Copy Markdown
Collaborator Author

looks like a couple of the tests are failing in CI, is that expected?

Nope not expected. Let me take a look.

@kellyguo11 fixed the issue. it was the compute_pose_error changes. Once I reverted those and fixed the test it seemed to work on my machine.

Tests pass except test_tiled_camera

@ooctipus

Copy link
Copy Markdown
Collaborator

Some tests in test_tiled_camera is a bit finicky because the rendered pixel are inherently stochastic in tiled camera, we fix some of it in the upcoming commits, but I think it should be fine. @kellyguo11

@kellyguo11

Copy link
Copy Markdown
Contributor

awesome, latest run looks good!

@kellyguo11
kellyguo11 merged commit 8e57a3a into isaac-sim:main Jul 10, 2025
harry-wf-cheung pushed a commit to harry-wf-cheung/IsaacLab-Harry that referenced this pull request Jul 30, 2025
…#103) (isaac-sim#2801)

# Description

this PR adds tests for:

- scale_transform
- unscale_transform
- saturate
- normalize
- copysign
- convert_quat
- quat_conjugate
- quat_from_euler_xyz
- quat_from_matrix
- euler_xyz_from_quat
- matrix_from_euler
- quat_from_angle_axis
- axis_angle_from_quat
- skew_symmetric_matrix
- combine_transform
- subtract_transform
- compute_pose_error

Fixes # (issue)

## Type of change

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

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)

## Checklist

- [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------

Signed-off-by: James Tigue <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
StephenWelch pushed a commit to StephenWelch/IsaacLab that referenced this pull request Aug 17, 2025
…#103) (isaac-sim#2801)

# Description

this PR adds tests for:

- scale_transform
- unscale_transform
- saturate
- normalize
- copysign
- convert_quat
- quat_conjugate
- quat_from_euler_xyz
- quat_from_matrix
- euler_xyz_from_quat
- matrix_from_euler
- quat_from_angle_axis
- axis_angle_from_quat
- skew_symmetric_matrix
- combine_transform
- subtract_transform
- compute_pose_error

Fixes # (issue)

## Type of change

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

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)

## Checklist

- [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------

Signed-off-by: James Tigue <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
LJones-alt pushed a commit to LJones-alt/IsaacLab-Laura that referenced this pull request Jul 1, 2026
…#103) (isaac-sim#2801)

# Description

this PR adds tests for:

- scale_transform
- unscale_transform
- saturate
- normalize
- copysign
- convert_quat
- quat_conjugate
- quat_from_euler_xyz
- quat_from_matrix
- euler_xyz_from_quat
- matrix_from_euler
- quat_from_angle_axis
- axis_angle_from_quat
- skew_symmetric_matrix
- combine_transform
- subtract_transform
- compute_pose_error

Fixes # (issue)

## Type of change

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

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)

## Checklist

- [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------

Signed-off-by: James Tigue <[email protected]>
Signed-off-by: Kelly Guo <[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
…#103) (isaac-sim#2801)

# Description

this PR adds tests for:

- scale_transform
- unscale_transform
- saturate
- normalize
- copysign
- convert_quat
- quat_conjugate
- quat_from_euler_xyz
- quat_from_matrix
- euler_xyz_from_quat
- matrix_from_euler
- quat_from_angle_axis
- axis_angle_from_quat
- skew_symmetric_matrix
- combine_transform
- subtract_transform
- compute_pose_error

Fixes # (issue)

## Type of change

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

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)

## Checklist

- [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------

Signed-off-by: James Tigue <[email protected]>
Signed-off-by: Kelly Guo <[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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants