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

Extend ContactSensorData by force_matrix_w_history attribute #1746

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lukasfro
Copy link

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

@lukasfro lukasfro marked this pull request as ready for review January 28, 2025 16:09
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
1 participant