Skip to content

Conversation

@lukasfro
Copy link
Contributor

@lukasfro lukasfro commented Jan 28, 2025

Description

As proposed in #1720, this PR extends the ContactSensorData class with a force_matrix_w_history attribute that tracks the history of filtered contact forces.

Fixes #1720

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

@lukasfro
Copy link
Contributor Author

FYI: Neither the documentation nor the unit tests mention the history of net_forces_w_history. This is why I did not add any changes to the corresponding files regarding the new attribute force_matrix_w_history.

Please let me know if this is a hard requirement for this PR.

Comment on lines -145 to -146
if self.cfg.history_length > 0:
self._data.net_forces_w_history[env_ids] = 0.0
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 these lines as they are redundant with the line above.

@Mayankm96
Copy link
Contributor

Thank you for this MR! Could you please update it to the latest main? There are a few merge conflicts

kellyguo11 added a commit that referenced this pull request Jul 16, 2025
)

# Description

This is a follow-up to #1746 by @lukasfro — thanks for the great work
there!

I’ve been using this feature and found it really helpful. Since the only
remaining request was to resolve merge conflicts and the PR has been
quiet for a bit, I went ahead and rebased it on the latest `main` to
help move things forward.

I branched directly off @lukasfro’s [original
branch](https://github.com/lukasfro/IsaacLab/tree/feature/force_matrix_w_history)
to preserve their authorship, and only applied the changes needed to
resolve the conflicts.

Of course, if @lukasfro prefers to continue the original PR, I’m more
than happy to close this. Just hoping to be helpful and support getting
this great addition merged.

All credit for the original work goes to @lukasfro.

Fixes #1720

## 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`
- [ ] 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
- [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: Kelly Guo <kellyg@nvidia.com>
Co-authored-by: lukasfro <lukas.froehlich@swiss-mile.com>
Co-authored-by: Kelly Guo <kellyg@nvidia.com>
@Mayankm96
Copy link
Contributor

Closing this MR in favor of #2916

@Mayankm96 Mayankm96 closed this Jul 30, 2025
harry-wf-cheung pushed a commit to harry-wf-cheung/IsaacLab-Harry that referenced this pull request Jul 30, 2025
…aac-sim#2916)

# Description

This is a follow-up to isaac-sim#1746 by @lukasfro — thanks for the great work
there!

I’ve been using this feature and found it really helpful. Since the only
remaining request was to resolve merge conflicts and the PR has been
quiet for a bit, I went ahead and rebased it on the latest `main` to
help move things forward.

I branched directly off @lukasfro’s [original
branch](https://github.com/lukasfro/IsaacLab/tree/feature/force_matrix_w_history)
to preserve their authorship, and only applied the changes needed to
resolve the conflicts.

Of course, if @lukasfro prefers to continue the original PR, I’m more
than happy to close this. Just hoping to be helpful and support getting
this great addition merged.

All credit for the original work goes to @lukasfro.

Fixes isaac-sim#1720

## 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`
- [ ] 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
- [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: Kelly Guo <kellyg@nvidia.com>
Co-authored-by: lukasfro <lukas.froehlich@swiss-mile.com>
Co-authored-by: Kelly Guo <kellyg@nvidia.com>
kellyguo11 added a commit that referenced this pull request Aug 7, 2025
)

This is a follow-up to #1746 by @lukasfro — thanks for the great work
there!

I’ve been using this feature and found it really helpful. Since the only
remaining request was to resolve merge conflicts and the PR has been
quiet for a bit, I went ahead and rebased it on the latest `main` to
help move things forward.

I branched directly off @lukasfro’s [original
branch](https://github.com/lukasfro/IsaacLab/tree/feature/force_matrix_w_history)
to preserve their authorship, and only applied the changes needed to
resolve the conflicts.

Of course, if @lukasfro prefers to continue the original PR, I’m more
than happy to close this. Just hoping to be helpful and support getting
this great addition merged.

All credit for the original work goes to @lukasfro.

Fixes #1720

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

- [x] 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
- [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: Kelly Guo <kellyg@nvidia.com>
Co-authored-by: lukasfro <lukas.froehlich@swiss-mile.com>
Co-authored-by: Kelly Guo <kellyg@nvidia.com>
StephenWelch pushed a commit to StephenWelch/IsaacLab that referenced this pull request Aug 17, 2025
…aac-sim#2916)

# Description

This is a follow-up to isaac-sim#1746 by @lukasfro — thanks for the great work
there!

I’ve been using this feature and found it really helpful. Since the only
remaining request was to resolve merge conflicts and the PR has been
quiet for a bit, I went ahead and rebased it on the latest `main` to
help move things forward.

I branched directly off @lukasfro’s [original
branch](https://github.com/lukasfro/IsaacLab/tree/feature/force_matrix_w_history)
to preserve their authorship, and only applied the changes needed to
resolve the conflicts.

Of course, if @lukasfro prefers to continue the original PR, I’m more
than happy to close this. Just hoping to be helpful and support getting
this great addition merged.

All credit for the original work goes to @lukasfro.

Fixes isaac-sim#1720

## 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`
- [ ] 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
- [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: Kelly Guo <kellyg@nvidia.com>
Co-authored-by: lukasfro <lukas.froehlich@swiss-mile.com>
Co-authored-by: Kelly Guo <kellyg@nvidia.com>
StephenWelch pushed a commit to StephenWelch/IsaacLab that referenced this pull request Aug 17, 2025
…aac-sim#2916)

This is a follow-up to isaac-sim#1746 by @lukasfro — thanks for the great work
there!

I’ve been using this feature and found it really helpful. Since the only
remaining request was to resolve merge conflicts and the PR has been
quiet for a bit, I went ahead and rebased it on the latest `main` to
help move things forward.

I branched directly off @lukasfro’s [original
branch](https://github.com/lukasfro/IsaacLab/tree/feature/force_matrix_w_history)
to preserve their authorship, and only applied the changes needed to
resolve the conflicts.

Of course, if @lukasfro prefers to continue the original PR, I’m more
than happy to close this. Just hoping to be helpful and support getting
this great addition merged.

All credit for the original work goes to @lukasfro.

Fixes isaac-sim#1720

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

- [x] 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
- [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: Kelly Guo <kellyg@nvidia.com>
Co-authored-by: lukasfro <lukas.froehlich@swiss-mile.com>
Co-authored-by: Kelly Guo <kellyg@nvidia.com>
george-nehma pushed a commit to george-nehma/DreamLander-IsaacLab that referenced this pull request Oct 24, 2025
…aac-sim#2916)

This is a follow-up to isaac-sim#1746 by @lukasfro — thanks for the great work
there!

I’ve been using this feature and found it really helpful. Since the only
remaining request was to resolve merge conflicts and the PR has been
quiet for a bit, I went ahead and rebased it on the latest `main` to
help move things forward.

I branched directly off @lukasfro’s [original
branch](https://github.com/lukasfro/IsaacLab/tree/feature/force_matrix_w_history)
to preserve their authorship, and only applied the changes needed to
resolve the conflicts.

Of course, if @lukasfro prefers to continue the original PR, I’m more
than happy to close this. Just hoping to be helpful and support getting
this great addition merged.

All credit for the original work goes to @lukasfro.

Fixes isaac-sim#1720

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

- [x] 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
- [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: Kelly Guo <kellyg@nvidia.com>
Co-authored-by: lukasfro <lukas.froehlich@swiss-mile.com>
Co-authored-by: Kelly Guo <kellyg@nvidia.com>
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.

[Proposal] Extend ContactSensorData by force_matrix_w_history attribute

2 participants