Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipuch committed Apr 19, 2023
1 parent 97754cd commit 88ca152
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions examples/play_with_joints/two_constant_length.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def build_two_link_segment():
NaturalMarker(
name="point_A",
parent_name="segment_0",
position=np.array([0, -1, 0]),
position=np.array([0, -1, 0.05]),
is_technical=True,
is_anatomical=False,
)
Expand All @@ -49,7 +49,7 @@ def build_two_link_segment():
NaturalMarker(
name="point_AA",
parent_name="segment_0",
position=np.array([0, -1, 0.05]),
position=np.array([0, -1, -0.05]),
is_technical=True,
is_anatomical=False,
)
Expand All @@ -59,7 +59,7 @@ def build_two_link_segment():
NaturalMarker(
name="point_B",
parent_name="segment_1",
position=np.array([0, 0, 0]),
position=np.array([0, 0, 0.05]),
is_technical=True,
is_anatomical=False,
)
Expand All @@ -69,7 +69,7 @@ def build_two_link_segment():
NaturalMarker(
name="point_BB",
parent_name="segment_1",
position=np.array([0, 0, 0.05]),
position=np.array([0, 0, -0.05]),
is_technical=True,
is_anatomical=False,
)
Expand Down Expand Up @@ -129,11 +129,11 @@ def main(initial_pose: str = "hanged"):
1,
0,
0,
0.2 * np.cos(np.pi / 4),
0,
-(0.8 + 0.2 * np.sin(np.pi / 4)),
0.2 * np.cos(np.pi / 4),
-(0.8 + 0.2 * np.sin(np.pi / 4)),
0,
0.2 * np.cos(np.pi / 4),
-(0.8 + 0.2 * np.sin(np.pi / 4)) - 0.8,
0,
-1,
Expand Down Expand Up @@ -203,5 +203,5 @@ def main(initial_pose: str = "hanged"):


if __name__ == "__main__":
main("hanged")
# main("ready_to_swing")
# main("hanged")
main("ready_to_swing")

0 comments on commit 88ca152

Please sign in to comment.