using RobotNet10.Shared.Geometry;
using RobotNet10.Shared.Localization;
namespace RobotNet10.RobotApp.Shared;
///
/// Represents the size of a map in meters
///
public record MapSize
{
public double Width { get; init; }
public double Height { get; init; }
public MapSize() { }
public MapSize(double width, double height)
{
Width = width;
Height = height;
}
}
///
/// Information about a saved map
///
public class MapInfo
{
///
/// Tên map (tên folder)
///
public string Name { get; init; } = string.Empty;
///
/// Đường dẫn tuyệt đối đến map folder
///
public string FolderPath { get; init; } = string.Empty;
///
/// Ngày tạo map
///
public DateTime CreatedDate { get; init; }
///
/// Resolution của occupancy grid (meters/pixel)
///
public double Resolution { get; init; }
///
/// Kích thước map (pixels)
///
public MapSize Size { get; init; } = new();
///
/// Gốc tọa độ của map
///
public Pose Origin { get; init; } = new();
///
/// Bounds của map (meters)
///
public BoundingBox Bounds { get; init; } = new();
///
/// Số lượng trajectory nodes
///
public int TrajectoryNodeCount { get; init; }
}