Arm routes queued without stops at via-points; wave with two swings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 17:48:11 +09:00
co-authored by Claude Opus 5.5
parent 19325ee3b6
commit 217eb93d81
11 changed files with 191 additions and 52 deletions
+8 -6
View File
@@ -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` (J5 +21.7
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). Before anything moves, every joint move is checked (arm_route.check_moves: limits, travel, the gripper clear
-> look). All moves are sent at once (motion.move_path): no pause between them, blended through wave_out. 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
head.
@@ -19,8 +19,8 @@ from manipulation import arm_route, skills
from robot import agv, arm, gripper, motion
START = "wave_start" # hand above the head; the wave starts and ends here
SWING = "wave" # START with J5 +21.7 deg (taught 2026-10-21)
SWINGS = 3 # times START -> SWING -> START
SWING = "wave" # START with J3 −14.7°)
SWINGS = 2 # times START -> SWING -> START
SWING_SPEED = "slow" # motion.JOINT_SPEED of the swings; the way up is arm_route.SPEED
# Why Lumi does not wave, (English, Korean)
@@ -95,8 +95,10 @@ def wave(on_start=None):
if on_start:
on_start()
up = len(seq) - 2 * SWINGS # the moves before are the way up along the graph
for k, t in enumerate(seq):
motion.move_joints(t, arm_route.SPEED if k < up else SWING_SPEED)
way = arm_route.moves(seq[:up]) # blended through wave_out (checked by arm_route.plan) ...
if way:
way[-1] = (way[-1][0], way[-1][1], 0.0) # ... to a full stop at START, where the swings start
motion.move_path(way + [(t, SWING_SPEED, 0.0) for t in seq[up:]]) # all queued: no pause between moves
if __name__ == "__main__":