Skip to content

Commit

Permalink
Ignore localize ability if running full missions
Browse files Browse the repository at this point in the history
  • Loading branch information
tsundvoll authored and andchiind committed Jun 6, 2024
1 parent d4ff2d6 commit 3418f9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/isar/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,3 +341,7 @@ def __init__(self) -> None:


robot_settings = RobotSettings()

if not settings.RUN_MISSION_STEPWISE: # If mission-wise, do not run localize missions
if "localize" in robot_settings.CAPABILTIIES:
robot_settings.CAPABILITIES.remove("localize")
4 changes: 3 additions & 1 deletion src/isar/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from isar.apis.api import API
from isar.config.keyvault.keyvault_service import Keyvault
from isar.config.log import setup_loggers
from isar.config.settings import settings
from isar.config.settings import robot_settings, settings
from isar.models.communication.queues.queues import Queues
from isar.modules import get_injector
from isar.services.service_connections.mqtt.mqtt_client import MqttClient
Expand Down Expand Up @@ -72,6 +72,8 @@ def print_setting(setting: str = "", value: Any = "", fillchar: str = " "):
print_setting("Plant code", settings.PLANT_CODE)
print_setting("Plant name", settings.PLANT_NAME)
print_setting("Plant shortname", settings.PLANT_SHORT_NAME)
print_setting(fillchar="-")
print_setting("Robot capabilities", robot_settings.CAPABILITIES)
print_setting(fillchar="*")
print()

Expand Down

0 comments on commit 3418f9a

Please sign in to comment.