You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: battery_state_broadcaster/src/battery_state_broadcaster.yaml
+22-2Lines changed: 22 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,7 @@ battery_state_broadcaster:
18
18
description: "List of joints from which battery state interfaces will be read.",
19
19
read_only: true,
20
20
validation: {
21
-
unique<>: null,
22
-
size_gt<>: [0]
21
+
unique<>: null
23
22
}
24
23
}
25
24
interfaces:
@@ -105,3 +104,24 @@ battery_state_broadcaster:
105
104
description: "Serial number of the battery.",
106
105
read_only: true,
107
106
}
107
+
sensor_name: {
108
+
type: string,
109
+
default_value: "",
110
+
description: "Sensor name of the battery. If provided, the 'voltage' state interface of this sensor will be used to populate the voltage field in the BatteryState message. If this parameter is used, the state joints and interfaces parameters are ignored.",
111
+
read_only: true,
112
+
}
113
+
design_capacity: {
114
+
type: double,
115
+
default_value: .nan,
116
+
description: "Design capacity of the battery [Ah] for the sensor_name mode (If unmeasured NaN).",
117
+
read_only: true,
118
+
}
119
+
power_supply_technology: {
120
+
type: int,
121
+
default_value: 0,
122
+
description: "Battery chemistry type as an enum for the sensor_name mode. If unmeasured, the technology is set to unknown.",
0 commit comments