Initial commit
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
using RobotNet10.Shared.Geometry;
|
||||
using RobotNet10.Shared.Localization;
|
||||
|
||||
namespace RobotNet10.RobotApp.Shared;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the size of a map in meters
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Information about a saved map
|
||||
/// </summary>
|
||||
public class MapInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Tên map (tên folder)
|
||||
/// </summary>
|
||||
public string Name { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Đường dẫn tuyệt đối đến map folder
|
||||
/// </summary>
|
||||
public string FolderPath { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Ngày tạo map
|
||||
/// </summary>
|
||||
public DateTime CreatedDate { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Resolution của occupancy grid (meters/pixel)
|
||||
/// </summary>
|
||||
public double Resolution { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Kích thước map (pixels)
|
||||
/// </summary>
|
||||
public MapSize Size { get; init; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Gốc tọa độ của map
|
||||
/// </summary>
|
||||
public Pose Origin { get; init; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Bounds của map (meters)
|
||||
/// </summary>
|
||||
public BoundingBox Bounds { get; init; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Số lượng trajectory nodes
|
||||
/// </summary>
|
||||
public int TrajectoryNodeCount { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user