From 6b98cad53e5dab350b6707d0dba94e84ff37ee24 Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Wed, 1 Apr 2026 19:46:31 -0400 Subject: [PATCH] fix(api): add missing posture actions (stand, stand_init, sit, crouch) --- src/app/api/robots/command/route.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/app/api/robots/command/route.ts b/src/app/api/robots/command/route.ts index b781ed6..388de31 100644 --- a/src/app/api/robots/command/route.ts +++ b/src/app/api/robots/command/route.ts @@ -117,6 +117,22 @@ export async function POST(request: NextRequest) { command = `sshpass -p "${password}" ssh -o StrictHostKeyChecking=no "nao@${robotIp}" "qicli call ALAnimationPlayer.run 'animations/Stand/Gestures/IDontKnow_1'"`; break; + case "stand": + command = `sshpass -p "${password}" ssh -o StrictHostKeyChecking=no "nao@${robotIp}" "qicli call ALRobotPosture.goToPosture Stand 0.5"`; + break; + + case "stand_init": + command = `sshpass -p "${password}" ssh -o StrictHostKeyChecking=no "nao@${robotIp}" "qicli call ALRobotPosture.goToPosture StandInit 0.5"`; + break; + + case "sit": + command = `sshpass -p "${password}" ssh -o StrictHostKeyChecking=no "nao@${robotIp}" "qicli call ALRobotPosture.goToPosture Sit 0.5"`; + break; + + case "crouch": + command = `sshpass -p "${password}" ssh -o StrictHostKeyChecking=no "nao@${robotIp}" "qicli call ALRobotPosture.goToPosture Crouch 0.5"`; + break; + default: return NextResponse.json( { error: `System action ${id} not implemented` },