Skip to content

Commit

Permalink
WIP: move feet of humanoid stance
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-caron committed Mar 30, 2022
1 parent 5d3c7a6 commit a5f6800
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/humanoid_stand_reach.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,23 @@ def at(self, t):
viz.viewer["pelvis_pose"].set_transform(pelvis_pose.np)
pelvis_task.set_target(pelvis_pose)

transform_l_ankle_target_to_init = pin.SE3(
np.eye(3), np.array([0.1, 0.0, 0.0])
)
transform_r_ankle_target_to_init = pin.SE3(
np.eye(3), np.array([-0.1, 0.0, 0.0])
)

left_foot_task.set_target(
configuration.get_transform_body_to_world("l_ankle")
* transform_l_ankle_target_to_init
)
right_foot_task.set_target(
configuration.get_transform_body_to_world("r_ankle")
* transform_r_ankle_target_to_init
)
pelvis_task.set_target(
configuration.get_transform_body_to_world("PELVIS_S")
)

right_wrist_pose = WavingPose(
Expand Down

0 comments on commit a5f6800

Please sign in to comment.