RcsData.cs 3.53 KB
using RCS.Model.Comm;
using RCS.Model.Entity;

namespace RCS.Model.ClientMoel
{
    public class RcsData
    {
        public RcsData(uint subTaskNo, Base_Task? task)
        {
            SubTaskNo = subTaskNo;
            Task = task;
        }

        /// <summary>
        /// 任务号
        /// </summary>
        public uint SubTaskNo { get; set; }

        /// <summary>
        /// AGV命令
        /// </summary>
        public EnumMsg.ActionType ActionType { get; set; }

        /// <summary>
        /// 主任务
        /// </summary>
        public Base_Task? Task { get; set; }

        /// <summary>
        /// 任务的地标信息
        /// </summary>
        public List<RcsDataDetail> Details { get; set; } = new List<RcsDataDetail>();

        /// <summary>
        /// 取放货标识
        /// </summary>
        public EnumMsg.PickPut PickPut { get; set; }
        /// <summary>
        /// 顶升高度
        /// </summary>
        public ushort Height { get; set; }

        /// <summary>
        /// 角度
        /// </summary>
        public short Angle { get; set; }
        /// <summary>
        /// 角度
        /// </summary>
        public EnumMsg.RCSToAGV RCSToAGV { get; set; }
    }



    public class RcsDataDetail
    {
        /// <summary>
        /// 码值
        /// </summary>
        public string Barcode { get; set; }

        /// <summary>
        /// 坐标X值
        /// </summary>
        public int XLength { get; set; }

        /// <summary>
        /// 坐标Y值
        /// </summary>
        public int YLength { get; set; }

        /// <summary>
        /// 地标属性
        /// </summary>
        public EnumMsg.PointType PointType { get; set; }

        /// <summary>
        /// 调整属性
        /// </summary>
        public EnumMsg.Adjust Adjust { get; set; }

        /// <summary>
        /// 动作属性
        /// </summary>
        public EnumMsg.ActionType ActionType { get; set; }

        /// <summary>
        /// 顶升高度
        /// </summary>
        public ushort Height { get; set; }

        /// <summary>
        /// 雷达值
        /// </summary>
        public byte Radar { get; set; }

        /// <summary>
        /// 车头角度
        /// </summary>
        public short AgvAngle { get; set; }

        /// <summary>
        /// 转盘角度
        /// </summary>
        public short DialAngle { get; set; }

        /// <summary>
        /// 转盘方向
        /// </summary>
        public EnumMsg.Direction DialDirection { get; set; } = EnumMsg.Direction.无方向;

        /// <summary>
        /// 货物输送方向
        /// </summary>
        public EnumMsg.Direction TransportDirection { get; set; } = EnumMsg.Direction.无方向;

        /// <summary>
        /// 速度
        /// </summary>
        public int Speed { get; set; }

        /// <summary>
        /// 重量
        /// </summary>
        public float Weight { get; set; }

        /// <summary>
        /// Rcs下发的错误码
        /// </summary>
        public byte RCSErrorCode { get; set; }
        /// <summary>
        /// 是否横移
        /// </summary>
        public bool IsLateralDisplacement { get; set; }
        /// <summary>
        /// 定位精确调节X
        /// </summary>
        public short AdjustX { set; get; }
        /// <summary>
        /// 定位精确调节Y
        /// </summary>
        public short AdjustY { set; get; }

        /// <summary>
        /// 路径点信息
        /// </summary>
        public Base_PathPoint PathPoint { get; set; }

    }
}