Open
Description
Hi, thank you very much for jupyter-cadquery.
I have problem to animate translation. On the example given, I am able to animate correctly all legs rotation. As I understand, the function add_track with argument "rz" gives the control on angular position vs time. However when I uncomment the line about translation, to lift the hexapod to run on grid, it creates a uniform linear motion in z-direction. It seams to me that add_track with argument "tz" gives the control in translation speed instead of position
animation = Animation()
for name in leg_names:
# move upper leg
animation.add_track(f"/bottom/{name}", "rz", *horizontal(4, "middle" in name))
# move lower leg
animation.add_track(f"/bottom/{name}/lower", "rz", *vertical(8, 4, 0 if name in leg_group else 4, "left" in name))
# lift hexapod to run on grid
animation.add_track(f"bottom", "tz", [0, 4], [61.25] * 2)
animation.animate(speed=3)
Metadata
Metadata
Assignees
Labels
No labels