Arm moves one at a time with a settle pause, gentle acceleration
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
"""Wave the hand when someone asked for it. A greeting never moves the arm.
|
||||
|
||||
The arm goes up along the pose graph (manipulation/arm_route.py: from `look` to `wave_out`, the hand away from the
|
||||
head, then `wave_start`, the hand above the head), swings between the taught poses `wave_start` and `wave` (J3 −14.7°
|
||||
deg) SWINGS times and STAYS at `wave_start`: the next arm task takes it back down the same way (wave_start -> wave_out
|
||||
-> look). The way up goes like arm_route.goto (queued, blended through wave_out), then the swings, queued. Before
|
||||
head, then `wave_start`, the hand above the head), swings between the taught poses `wave_start` and `wave` (J3 −14.7°)
|
||||
SWINGS times and STAYS at `wave_start`: the next arm task takes it back down the same way (wave_start -> wave_out
|
||||
-> look). The way up goes like arm_route.goto, then the swings; each move to a stop (motion.move_path). Before
|
||||
anything moves, every joint move is checked (arm_route.check_moves: limits, travel, the gripper clear of the head, no
|
||||
dip). Refused, with the reason in English and Korean: the arm off or busy, the base driving, a task
|
||||
running, something in the hand, the arm at no known pose (after free drive), a pose not taught, a move too near the
|
||||
@@ -96,9 +96,11 @@ def wave(on_start=None):
|
||||
log(f"wave: {len(route) + len(swings)} joint moves, checked")
|
||||
if on_start:
|
||||
on_start()
|
||||
arm_route.move(route) # up exactly as arm_route.goto: queued, blended at wave_out
|
||||
arm_route.move(route) # up exactly as arm_route.goto
|
||||
if route and motion._stopped.wait(motion.SETTLE_S): # stand at START first, as between any two moves
|
||||
raise motion.MotionError("stopped")
|
||||
t0 = time.time()
|
||||
motion.move_path([(t, SWING_SPEED, 0.0) for t in swings]) # the swings queued: no pause between them
|
||||
motion.move_path([(t, SWING_SPEED) for t in swings])
|
||||
log(f"wave: {SWINGS} swings after {time.time() - t0:.1f} s")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user