feat(constitution): offset joint limits by initial distance/angle#411
Open
Ligo04 wants to merge 2 commits intospiriMirror:mainfrom
Open
feat(constitution): offset joint limits by initial distance/angle#411Ligo04 wants to merge 2 commits intospiriMirror:mainfrom
Ligo04 wants to merge 2 commits intospiriMirror:mainfrom
Conversation
Prismatic and revolute joint limits now account for an initial configuration offset. The `init_distance` and `init_angle` edge attributes are added to the lower/upper bounds so that limits are expressed relative to the rest pose rather than absolute values. Made-with: Cursor
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces initial offsets for affine body joint limits, specifically adding init_distance for prismatic joints and init_angle for revolute joints. These offsets are incorporated into the calculation of effective lower and upper bounds for joint constraints. The changes span documentation, CUDA backend implementations, and core attribute management. I have no feedback to provide as there were no review comments to evaluate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Joint limits (prismatic and revolute) now support an initial offset so that the limit range is expressed relative to an initial configuration rather than the reference pose.
init_distanceedge attribute toAffineBodyPrismaticJointLimit— the effective bounds becomelower + init_distanceandupper + init_distanceinit_angleedge attribute toAffineBodyRevoluteJointLimit— the effective bounds becomelower + init_angleandupper + init_angle0.0, preserving backward compatibility