Skip to content

Commit 4c933de

Browse files
committed
refactor: Remove unused command_type initialization in command executor classes
1 parent 524b2a9 commit 4c933de

8 files changed

+2
-12
lines changed

adf_core_python/implement/centralized/default_command_executor_ambulance.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def __init__(
4949
super().__init__(
5050
agent_info, world_info, scenario_info, module_manager, develop_data
5151
)
52-
self._command_type = self.ACTION_UNKNOWN
5352

5453
self._path_planning: PathPlanning = cast(
5554
PathPlanning,

adf_core_python/implement/centralized/default_command_executor_fire.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def __init__(
4646
super().__init__(
4747
agent_info, world_info, scenario_info, module_manager, develop_data
4848
)
49-
self._command_type = self.ACTION_UNKNOWN
5049

5150
self._path_planning: PathPlanning = cast(
5251
PathPlanning,

adf_core_python/implement/centralized/default_command_executor_police.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def __init__(
4747
super().__init__(
4848
agent_info, world_info, scenario_info, module_manager, develop_data
4949
)
50-
self._command_type = self.ACTION_UNKNOWN
5150

5251
self._path_planning: PathPlanning = cast(
5352
PathPlanning,

adf_core_python/implement/centralized/default_command_executor_scout.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def __init__(
4141
super().__init__(
4242
agent_info, world_info, scenario_info, module_manager, develop_data
4343
)
44-
self._command_type = self.ACTION_UNKNOWN
4544

4645
self._path_planning: PathPlanning = cast(
4746
PathPlanning,

adf_core_python/implement/centralized/default_command_executor_scout_police.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def __init__(
4242
super().__init__(
4343
agent_info, world_info, scenario_info, module_manager, develop_data
4444
)
45-
self._command_type = self.ACTION_UNKNOWN
4645

4746
self._path_planning: PathPlanning = cast(
4847
PathPlanning,

adf_core_python/implement/centralized/default_command_picker_ambulance.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def calculate(self) -> CommandPicker:
6161
if target is None:
6262
continue
6363

64+
command: CommunicationMessage
6465
if isinstance(target, Human):
6566
command = CommandAmbulance(
6667
True,

adf_core_python/implement/centralized/default_command_picker_fire.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def calculate(self) -> CommandPicker:
6161
if target is None:
6262
continue
6363

64+
command: CommunicationMessage
6465
if isinstance(target, Human):
6566
command = CommandAmbulance(
6667
True,

adf_core_python/implement/centralized/default_command_picker_police.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
from __future__ import annotations
22

33
from rcrs_core.entities.area import Area
4-
from rcrs_core.entities.human import Human
54
from rcrs_core.entities.policeForce import PoliceForce
65
from rcrs_core.worldmodel.entityID import EntityID
76

8-
from adf_core_python.core.agent.communication.standard.bundle.centralized.command_ambulance import (
9-
CommandAmbulance,
10-
)
117
from adf_core_python.core.agent.communication.standard.bundle.centralized.command_police import (
128
CommandPolice,
139
)
14-
from adf_core_python.core.agent.communication.standard.bundle.centralized.command_scout import (
15-
CommandScout,
16-
)
1710
from adf_core_python.core.agent.communication.standard.bundle.standard_message_priority import (
1811
StandardMessagePriority,
1912
)

0 commit comments

Comments
 (0)