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.
This commit is contained in:
2025-11-19 22:52:21 -05:00
parent 18fa6bff5f
commit 5631c69a76

View File

@@ -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",