-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fixes DCMotor clipping for negative power and adds actuator tests #2300
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
Fixes DCMotor clipping for negative power and adds actuator tests #2300
Conversation
hmm looks like the DC motor and environment tests are both failing, along with a few others, but not sure if they are all related to this change |
It seems there is something happening with the ActuatorNetLSTM actuators in AnymalC that is producing nan values. Will continue investigating. @Mayankm96 anything about this spark ideas? |
Signed-off-by: James Tigue <[email protected]>
@jtigue-bdai Do you have any references for the negative power? |
source/isaaclab/docs/CHANGELOG.rst
Outdated
@@ -133,8 +148,7 @@ Fixed | |||
|
|||
Changed | |||
^^^^^^^ | |||
|
|||
* Updated gymnasium to v1.2.0. This update includes fixes for a memory leak that appears when recording | |||
>>>* Updated gymnasium to v1.2.0. This update includes fixes for a memory leak that appears when recording |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup
) | ||
|
||
|
||
# @pytest.mark.parametrize("num_envs", [1, 2]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could these be removed or reused?
Signed-off-by: James Tigue <[email protected]>
Signed-off-by: James Tigue <[email protected]>
Signed-off-by: James Tigue <[email protected]>
Signed-off-by: James Tigue <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
…aac-sim#2300) # Description This PR adds tests for actuator initialization, configuration, and computation for Implicit, IdealPD, and DC motor actuators. This PR also updates the DCMotor model to clip based on a four quadrant DC motor model. This will fix improper clipping in the negative power regions (i.e. positive torque and negative velocity or negative torque and positive velocity). NOTE: This PR is dependant on the pytest migration in: [2034](isaac-sim#2034) This PR includes changes made in [2291](isaac-sim#2291) and would be an alternate candidate. Fixes [isaac-sim#2139](isaac-sim#2139) <!-- As a practice, it is recommended to open an issue to have discussions on the proposed pull request. This makes it easier for the community to keep track of what is being developed or added, and if a given feature is demanded by more than one party. --> ## 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) ## Screenshots  ## 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 <!-- 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: Kelly Guo <[email protected]> Signed-off-by: James Tigue <[email protected]> Signed-off-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
…aac-sim#2300) # Description This PR adds tests for actuator initialization, configuration, and computation for Implicit, IdealPD, and DC motor actuators. This PR also updates the DCMotor model to clip based on a four quadrant DC motor model. This will fix improper clipping in the negative power regions (i.e. positive torque and negative velocity or negative torque and positive velocity). NOTE: This PR is dependant on the pytest migration in: [2034](isaac-sim#2034) This PR includes changes made in [2291](isaac-sim#2291) and would be an alternate candidate. Fixes [isaac-sim#2139](isaac-sim#2139) <!-- As a practice, it is recommended to open an issue to have discussions on the proposed pull request. This makes it easier for the community to keep track of what is being developed or added, and if a given feature is demanded by more than one party. --> ## 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) ## Screenshots  ## 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 <!-- 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: Kelly Guo <[email protected]> Signed-off-by: James Tigue <[email protected]> Signed-off-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
Description
This PR adds tests for actuator initialization, configuration, and computation for Implicit, IdealPD, and DC motor actuators.
This PR also updates the DCMotor model to clip based on a four quadrant DC motor model. This will fix improper clipping in the negative power regions (i.e. positive torque and negative velocity or negative torque and positive velocity).
NOTE: This PR is dependant on the pytest migration in: 2034
This PR includes changes made in 2291 and would be an alternate candidate.
Fixes #2139
Type of change
Screenshots
Checklist
pre-commit
checks with./isaaclab.sh --format
config/extension.toml
fileCONTRIBUTORS.md
or my name already exists there