Skip to content

Commit

Permalink
Fix localization map
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Nov 8, 2023
1 parent 1d31ae6 commit d8c8c3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/api/Controllers/Models/AreaResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class AreaResponse

public MapMetadata MapMetadata { get; set; }

public DefaultLocalizationPose? DefaultLocalizationPose { get; set; }
public Pose? DefaultLocalizationPose { get; set; }

public IList<SafePosition> SafePositions { get; set; }

Expand All @@ -28,7 +28,7 @@ public AreaResponse(Area area)
InstallationCode = area.Installation.InstallationCode;
AreaName = area.Name;
MapMetadata = area.MapMetadata;
DefaultLocalizationPose = area.DefaultLocalizationPose;
DefaultLocalizationPose = area.DefaultLocalizationPose?.Pose;
SafePositions = area.SafePositions;
}
}
Expand Down

0 comments on commit d8c8c3b

Please sign in to comment.