From b4078bf8e3155e5669fed4eff8ac12d50298f269 Mon Sep 17 00:00:00 2001 From: "Mariana R. Santos" Date: Fri, 11 Oct 2024 15:08:34 +0200 Subject: [PATCH] Support tasks without inspections --- src/isar/apis/models/start_mission_definition.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/isar/apis/models/start_mission_definition.py b/src/isar/apis/models/start_mission_definition.py index 4eaf3816..655c6c98 100644 --- a/src/isar/apis/models/start_mission_definition.py +++ b/src/isar/apis/models/start_mission_definition.py @@ -8,7 +8,6 @@ from isar.apis.models.models import InputPose, InputPosition from isar.config.settings import settings from isar.mission_planner.mission_planner_interface import MissionPlannerError -from robot_interface.models.inspection.inspection import Inspection, InspectionMetadata from robot_interface.models.mission.mission import Mission from robot_interface.models.mission.task import ( TASKS, @@ -21,7 +20,6 @@ TakeThermalVideo, TakeVideo, ) -from robot_interface.models.mission.task import Task class InspectionTypes(str, Enum): @@ -51,7 +49,7 @@ class StartMissionInspectionDefinition(BaseModel): class StartMissionTaskDefinition(BaseModel): type: TaskType = Field(default=TaskType.Inspection) pose: InputPose - inspection: StartMissionInspectionDefinition + inspection: Optional[StartMissionInspectionDefinition] = None tag: Optional[str] = None id: Optional[str] = None