Add B1 and Kangaroo closed-loop models - #383
Open
Sergim96 wants to merge 2 commits into
Open
Conversation
change kangaroo colour fix b1 leg inertias and add full b1 closed loop
Member
|
Thanks, but this repo is already huge. |
Collaborator
I believe we should start supporting closed-loop kinematics in example-robot-data. This will allow us to continuously test new features introduced in Crocoddyl (see this PR loco-3d/crocoddyl#1525) without depending on another upstream package. What do you think? |
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
This PR adds several closed-loop robot models.
Unitree B1
b1_leg: serial three-joint leg without constraints.b1_leg_3D: leg with a position-level four-bar closure.b1_leg_6D: leg with a pose-level four-bar closure.b1_closed_loop: complete floating-base B1 with closed-loop four-bar mechanisms on all four legs.Kangaroo
kangaroo: serial model without loop constraints.kangaroo_knee_kin: knee mechanisms closed on both legs.kangaroo_knee_1ankle_kin: knee and first ankle linkage stage.kangaroo_knee_2ankle_kin: knee and both ankle linkage stages.kangaroo_legs_kin: complete leg mechanisms, including knee, ankle, and hip actuator loops.SRDF constraint utility
This PR also adds a utility that parses
<loop_constraint>entries from SRDF files and resolves each frame pair into its parent joints, placements, and active constraint DoFs.When a constraint provides an SRDF
mask, the utility uses it directly. When the mask is absent, it numerically infers the active DoFs by perturbing the joints supporting the constraint frames and measuring their linear and angular motion. Currently,b1_leg_6Duses this numerical fallback, while the remaining closed-loop models provide explicit masks.The models assume that the SRDF reference configuration
q0already satisfies all loop constraints.