From 5631c69a7687c623ee827f19dc722612a9841302 Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Wed, 19 Nov 2025 22:52:21 -0500 Subject: [PATCH] fix: remove invalid battery subscription causing ROS Bridge error The naoqi_bridge_msgs/BatteryState message type doesn't exist in the NAO6 ROS2 package, causing subscription errors. Removed the battery topic subscription for now. Battery info can be obtained through diagnostics or other means if needed in the future. --- src/lib/ros/wizard-ros-service.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/ros/wizard-ros-service.ts b/src/lib/ros/wizard-ros-service.ts index 0451ff4..e353abe 100644 --- a/src/lib/ros/wizard-ros-service.ts +++ b/src/lib/ros/wizard-ros-service.ts @@ -246,10 +246,8 @@ export class WizardRosService extends EventEmitter { private subscribeToRobotTopics(): void { const topics = [ { topic: "/joint_states", type: "sensor_msgs/JointState" }, - { - topic: "/naoqi_driver/battery", - type: "naoqi_bridge_msgs/BatteryState", - }, + // Battery topic removed - BatteryState message type doesn't exist in naoqi_bridge_msgs + // Battery info can be obtained through diagnostics or other means if needed { topic: "/naoqi_driver/bumper", type: "naoqi_bridge_msgs/Bumper" }, { topic: "/naoqi_driver/hand_touch",