Wave swings back to back, gentler joint acceleration

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 18:19:17 +09:00
co-authored by Claude Opus 5.5
parent 9864344307
commit 417bfcade7
4 changed files with 60 additions and 20 deletions
+3 -3
View File
@@ -90,14 +90,14 @@ a.sent.clear()
a.j = list(swing) # stopped at wave: back to wave_start, then swings
wave.wave()
assert a.sent == [top] + [swing, top] * wave.SWINGS, a.sent
names = [] # every move to a stop, then the next; the way up
names = [] # the way up as goto, move by move; then the swings
arm.cmd = lambda name, **k: (names.append((name, k.get("speed"), "tol" in k)), a(name, **k))[1] # as goto
a.j = list(LOOK)
wave.wave()
sent = [e for e in names if e[0] in ("joint_move", "get_data")]
route, swing_s = motion.JOINT_SPEED[arm_route.SPEED], motion.JOINT_SPEED[wave.SWING_SPEED]
assert sent == [x for v in [route] * 2 + [swing_s] * 2 * wave.SWINGS
for x in (("joint_move", v, False), ("get_data", None, False))], sent
assert sent == [("joint_move", route, False), ("get_data", None, False)] * 2 + \
[("joint_move", swing_s, False)] * 2 * wave.SWINGS + [("get_data", None, False)], sent # swings back to back
assert wave.SWING_SPEED == "normal"
arm.cmd = a
a.j = list(top)