@implements IAsyncDisposable
@using MudBlazor
@using RobotNet10.RobotApp.Client.Clients
@using RobotNet10.RobotApp.Client.Shared.SLAM
@using RobotNet10.Shared.Geometry
@using RobotNet10.Shared.Localization
@using Microsoft.JSInterop
@using System.Linq
@inject SLAMClient CartographerClient
@inject ISnackbar Snackbar
@inject IJSRuntime JSRuntime
@code {
[Parameter]
public RenderFragment? Elements { get; set; }
private ElementReference containerRef;
private ElementReference viewMovementRef;
private ElementReference mapContainerRef;
private ElementReference mapCanvasBaseRef;
private ElementReference laserScanCanvasRef;
private ElementReference trajectoryPolylineRef;
private MapMousePosition MapMousePositionRef = null!;
private GoalPose GoalPoseRef = null!;
private RobotPose RobotPoseRef = null!;
private RobotPoseInfo RobotPoseInfoRef = null!;
private bool ShowMap => CurrentGrid != null;
}