Skip to content

Commit 70fd985

Browse files
committed
Add cooling and ekf-node diagnostic settings conditionally
1 parent 6529957 commit 70fd985

File tree

1 file changed

+22
-0
lines changed
  • clearpath_generator_common/clearpath_generator_common/param

1 file changed

+22
-0
lines changed

clearpath_generator_common/clearpath_generator_common/param/platform.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,28 @@ def generate_parameters(self, use_sim_time: bool = False) -> None:
236236
],
237237
'contains': ['MCU']}}}}})
238238

239+
# Add cooling for A300 only for now
240+
if self.clearpath_config.get_platform_model() == Platform.A300:
241+
self.param_file.update(
242+
{self.DIAGNOSTIC_AGGREGATOR_NODE: {
243+
'platform': {
244+
'analyzers': {
245+
'cooling': {
246+
'type': 'diagnostic_aggregator/GenericAnalyzer',
247+
'path': 'Cooling',
248+
'contains': [ 'Fan', 'Thermal' ]}}}}})
249+
250+
if self.clearpath_config.platform.enable_ekf:
251+
self.param_file.update(
252+
{self.DIAGNOSTIC_AGGREGATOR_NODE: {
253+
'platform': {
254+
'analyzers': {
255+
'odometry': {
256+
'expected': [
257+
'ekf_node: Filter diagnostic updater',
258+
'ekf_node: odometry/filtered topic status',
259+
]}}}}})
260+
239261
sensor_analyzers = {}
240262

241263
# List all topics to be monitored from each launched sensor

0 commit comments

Comments
 (0)