Skip to content

Commit 75dfe07

Browse files
authored
Fix: Generic (#283)
* Add generic components to generic robot * Emty components for generic robot
1 parent bed7710 commit 75dfe07

File tree

1 file changed

+5
-0
lines changed
  • clearpath_generator_robot/clearpath_generator_robot/launch

1 file changed

+5
-0
lines changed

clearpath_generator_robot/clearpath_generator_robot/launch/generator.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,10 +459,15 @@ def __init__(self, setup_path: str = '/etc/clearpath/') -> None:
459459
):
460460
common_platform_components.append(self.base_station_node)
461461

462+
# Only add estimator when no BMS is present
463+
if self.bms_launch_file is None:
464+
common_platform_components.append(self.battery_state_estimator)
465+
462466
if len(self.can_bridges) > 0:
463467
common_platform_components.extend(self.can_bridges)
464468

465469
self.platform_components = {
470+
Platform.GENERIC: [],
466471
Platform.J100: common_platform_components + [
467472
self.imu_0_filter_node,
468473
self.imu_0_filter_config,

0 commit comments

Comments
 (0)