From 5b5490cb909611aeadcb9e2c2047f904e3568522 Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Wed, 1 Apr 2026 19:48:40 -0400 Subject: [PATCH] fix(wizard-ros): use executeSSH for animations to bypass studyId requirement --- src/lib/ros/wizard-ros-service.ts | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/lib/ros/wizard-ros-service.ts b/src/lib/ros/wizard-ros-service.ts index 94d1323..c402cbe 100644 --- a/src/lib/ros/wizard-ros-service.ts +++ b/src/lib/ros/wizard-ros-service.ts @@ -1057,20 +1057,8 @@ export class WizardRosService extends EventEmitter { console.log(`[WizardROS] Executing animation via API: ${animation}`); - // Use the robots command API to execute via SSH - const response = await fetch("/api/robots/command", { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ - action: "executeSystemAction", - parameters: { id: actionId }, - }), - }); - - if (!response.ok) { - const error = await response.text(); - throw new Error(`Animation failed: ${error}`); - } + // Use executeSSH to run animation via qicli (bypasses studyId requirement) + await this.executeSSHCommand(`qicli call ALAnimationPlayer.run '${animation}'`); console.log(`[WizardROS] Animation completed: ${animation}`); }