Skip to content

Commit

Permalink
Support tasks without inspections
Browse files Browse the repository at this point in the history
  • Loading branch information
mrica-equinor committed Oct 11, 2024
1 parent 426f3b2 commit b4078bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/isar/apis/models/start_mission_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -21,7 +20,6 @@
TakeThermalVideo,
TakeVideo,
)
from robot_interface.models.mission.task import Task


class InspectionTypes(str, Enum):
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b4078bf

Please sign in to comment.