Skip to content

Commit

Permalink
Send localisation pose to ISAR in mission
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Jun 4, 2024
1 parent 1b2fa4f commit a09d6d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/api/Services/Models/IsarMissionDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public struct IsarMissionDefinition
[JsonPropertyName("tasks")]
public List<IsarTaskDefinition> Tasks { get; set; }

[JsonPropertyName("start_pose")]
public IsarPose? StartPose { get; set; } = null;

public IsarMissionDefinition(List<IsarTaskDefinition> tasks)
{
Id = null;
Expand All @@ -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;
}
}

Expand Down

0 comments on commit a09d6d5

Please sign in to comment.