-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add tests for velocity_limit and velocity_limit_sim #1878
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
Add tests for velocity_limit and velocity_limit_sim #1878
Conversation
| elif cfg.effort_limit_sim is not None and cfg.effort_limit is None: | ||
| # TODO: Eventually we want to get rid of 'effort_limit' for implicit actuators. | ||
| # We should do this once all parameters have an "_sim" suffix. | ||
| cfg.effort_limit = cfg.effort_limit_sim |
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.
Ultimately we don't want to set effort_limit for implicit. We want to only use effort_limit_sim to propagate to physx.
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.
Yeah but till then I think it's okay to have them both the same values and expect to have the same output when you read them? They should be seen as equivalent IMO
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.
Yeah I get the reasoning. One issue I ran into was inning the test_valid_config. It operates on the registered instances of the cfgs so when it runs them for the second device it has overwritten them so then it raises the value error.
I guess an easy work around is to make a copy of the cfgs before initializing the asset.
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.
Yeah. We can do a copy inside the class. I think we might be doing it inside the base constructor already but for implicit since we modify before, it isn't getting called
e3ed9c3 to
c7b4cfb
Compare
Description
This PR is to add tests for velocity and effort limit settings for implicit and idealpd actuators.
NOTE this is a PR into a fix branch not main.
Fixes # (issue)
Type of change
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there