Add scene methods to get joint limit vectors#162
Conversation
| max_jerk: [5.0] | ||
| shoulder_lift: | ||
| max_acceleration: [10] | ||
| max_acceleration: [1.0] |
There was a problem hiding this comment.
incidental typo fix
sjahr
left a comment
There was a problem hiding this comment.
Nice work! The obvious annoying question: Can we add unit tests for the 4 new functions of the scene class?
Done! |
eholum
left a comment
There was a problem hiding this comment.
Just read through it (didn't try anything explicitly) but it looks in fair shape to me!
| switch (joint_info.type) { | ||
| case JointType::FLOATING: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
I would say if we need it later we can bring this out
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