We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8208946 commit 19fd7f2Copy full SHA for 19fd7f2
1 file changed
examples/example_4_physics_simulation.py
@@ -256,8 +256,8 @@ def main():
256
params=ik_sol_params,
257
)
258
259
- oMf_lf_tgt = pin.SE3(oMf_lf_tgt.rotation, lf_path[k + 1])
260
-
+ if phases[k + 1] > 0.0:
+ oMf_lf_tgt = pin.SE3(oMf_lf_tgt.rotation, lf_path[k + 1])
261
else:
262
ik_sol_params.fixed_foot_frame = talos.left_foot_id
263
ik_sol_params.moving_foot_frame = talos.right_foot_id
@@ -272,7 +272,8 @@ def main():
272
273
274
275
- oMf_rf_tgt = pin.SE3(oMf_rf_tgt.rotation, rf_path[k + 1])
+ if phases[k + 1] < 0.0:
276
+ oMf_rf_tgt = pin.SE3(oMf_rf_tgt.rotation, rf_path[k + 1])
277
278
simulator.apply_joints_pos_to_robot(q_des)
279
0 commit comments