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

Fix repeated application of scale to velocity joint limits #253

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

Conversation

scharalambous-sony
Copy link
Contributor

  • Resolves issue where velocity scale is applied 2x to the velocity joint limits
  • Adds a corresponding unit test

@balakumar-s
Copy link
Collaborator

Thanks for this fix, let me go through the MR to understand why scale was being applied twice.

@scharalambous-sony
Copy link
Contributor Author

Thanks for this fix, let me go through the MR to understand why scale was being applied twice.

The reason is that the velocity scale is applied here

joint_limits["velocity"][0] *= self.cspace.velocity_scale

and here
if self.velocity_scale is not None:

@scharalambous-sony
Copy link
Contributor Author

I have updated the PR with a more foolproof implementation. The clipping and scaling operations are now member functions of JointLimits and we can now keep track of whether they've been already applied

@scharalambous-sony scharalambous-sony deleted the fix_limit_scaling branch August 5, 2024 14:41
@scharalambous-sony scharalambous-sony restored the fix_limit_scaling branch August 5, 2024 14:43
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.

2 participants