diff --git a/backend/api/Services/Models/IsarMissionDefinition.cs b/backend/api/Services/Models/IsarMissionDefinition.cs index bc37a2968..ef81a5c8d 100644 --- a/backend/api/Services/Models/IsarMissionDefinition.cs +++ b/backend/api/Services/Models/IsarMissionDefinition.cs @@ -17,6 +17,9 @@ public struct IsarMissionDefinition [JsonPropertyName("tasks")] public List Tasks { get; set; } + [JsonPropertyName("start_pose")] + public IsarPose? StartPose { get; set; } = null; + public IsarMissionDefinition(List tasks) { Id = null; @@ -29,6 +32,7 @@ public IsarMissionDefinition(MissionRun missionRun) Id = missionRun.IsarMissionId; Name = missionRun.Name; Tasks = missionRun.Tasks.Select(task => new IsarTaskDefinition(task, missionRun)).ToList(); + StartPose = missionRun.Area.DefaultLocalizationPose != null ? new IsarPose(missionRun.Area.DefaultLocalizationPose.Pose) : null; } }