Skip to content

Add scene methods to get joint limit vectors#162

Merged
sea-bass merged 4 commits intomainfrom
limit-vector-util
Mar 15, 2026
Merged

Add scene methods to get joint limit vectors#162
sea-bass merged 4 commits intomainfrom
limit-vector-util

Conversation

@sea-bass
Copy link
Collaborator

@sea-bass sea-bass commented Mar 15, 2026

Adding this in preparation for cleaning up the oink interfaces to accept the scene at construction time.

Useful for RRT, TOPP-RA, and oink position limit task (which uncovers that for some reason there is an inconsistent interface between the position and velocity limits, in that one extracts the limit from the scene and the other accepts the limit vectors explicitly).

Closes #153

@sea-bass sea-bass requested review from eholum and sjahr March 15, 2026 16:00
max_jerk: [5.0]
shoulder_lift:
max_acceleration: [10]
max_acceleration: [1.0]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incidental typo fix

Copy link
Collaborator

@sjahr sjahr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! The obvious annoying question: Can we add unit tests for the 4 new functions of the scene class?

@sea-bass
Copy link
Collaborator Author

Nice work! The obvious annoying question: Can we add unit tests for the 4 new functions of the scene class?

Done!

@sea-bass sea-bass requested a review from sjahr March 15, 2026 17:46
Copy link
Collaborator

@eholum eholum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just read through it (didn't try anything explicitly) but it looks in fair shape to me!

Comment on lines +443 to +444
switch (joint_info.type) {
case JointType::FLOATING:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't have to happen now, but would it be helpful to have the logic here and in the other limits function at the joint level? I could see value in a utility function in scene_utils.cpp or type_utils.cpp that provided the collapsed position at the joint level rather than just at the group level.

That said... This is pretty straightforward so maybe it's six of one half dozen of the other.

Copy link
Collaborator Author

@sea-bass sea-bass Mar 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say if we need it later we can bring this out

@sea-bass sea-bass requested a review from eholum March 15, 2026 20:04
Copy link
Collaborator

@sjahr sjahr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@sea-bass sea-bass merged commit af9f527 into main Mar 15, 2026
10 checks passed
@sea-bass sea-bass deleted the limit-vector-util branch March 15, 2026 22:49
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.

Add helper functions to extract joint limit vectors from a scene

3 participants