fix: complete EM observation final review
This commit is contained in:
+7
-1
@@ -88,7 +88,7 @@ public sealed class TrajectoryObservationPresentation
|
||||
private readonly Painter stPainter = UI.GetPainter("TrajectoryObserver.ST", true);
|
||||
|
||||
public void DrawWorld(TrajectoryObservationBootstrapResult bootstrap,
|
||||
TrajectoryObservationObservation observation)
|
||||
TrajectoryObservationObservation observation, TrajectoryObservationRuntimeState runtimeState)
|
||||
{
|
||||
worldPainter.Clear();
|
||||
if (bootstrap == null)
|
||||
@@ -104,6 +104,12 @@ public sealed class TrajectoryObservationPresentation
|
||||
DrawLocalG2Path(bootstrap.SmoothedPath == null ? null : bootstrap.SmoothedPath.Path);
|
||||
DrawPose(observation == null || observation.VehicleState == null ? null : observation.VehicleState.Pose,
|
||||
Color.DeepSkyBlue, "real pose");
|
||||
if (runtimeState != null && runtimeState.WorldNotice.Length > 0)
|
||||
{
|
||||
float noticeX = bootstrap.Map == null ? 0f : bootstrap.Map.Bounds.XMin + 100f;
|
||||
float noticeY = bootstrap.Map == null ? 0f : bootstrap.Map.Bounds.YMax - 200f;
|
||||
worldPainter.DrawText(Color.OrangeRed, runtimeState.WorldNotice, noticeX, noticeY);
|
||||
}
|
||||
|
||||
EmTrajectory trajectory = observation == null ? null : observation.PublishedTrajectory;
|
||||
if (trajectory == null || trajectory.Points == null || trajectory.Points.Count == 0)
|
||||
|
||||
Reference in New Issue
Block a user