Skip to content
Snippets Groups Projects
Commit 40a7c7cc authored by Carlos Mastalli's avatar Carlos Mastalli
Browse files

[hyq] Hard coded referenceConfigurations to match Pinocchio with SDRF

We need to create a SDRF for HyQ.
parent 06e4ec98
No related branches found
No related tags found
No related merge requests found
......@@ -119,5 +119,7 @@ def loadHyQ(modelPath='examples/hyq_description'):
robot = RobotWrapper.BuildFromURDF(FILENAME+modelPath+URDF_SUBPATH, [modelPath],
pinocchio.JointModelFreeFlyer())
# TODO define default position inside srdf
robot.q0.flat[7:] = [0., 0.75, -1.5, 0., -0.75, 1.5, 0., 0.75, -1.5, 0., -0.75, 1.5]
robot.q0.flat[7:] = [-0.2, 0.75, -1.5, -0.2, -0.75, 1.5, -0.2, 0.75, -1.5, -0.2, -0.75, 1.5]
robot.q0[2] = 0.57750958
robot.model.referenceConfigurations["half_sitting"] = robot.q0
return robot
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment