using AmrControl.ADS;
using System.Runtime.InteropServices;
namespace AmrControl.Dto
{
///
/// JGR小车和充电桩的调试命令
///
public class JgrDebugDto
{
//JGR类型 0:仓储车 , 1:运输车, 2:充电器
public byte Type;
//出厂编号,最大29个字母的长度
public string SN;
///
/// 命令代码
///
public JgrCmdCode CmdCode;
///
/// 命令参数
///
public Dictionary Parameters;
public JgrDebugDto()
{
Parameters = new Dictionary();
CmdCode = JgrCmdCode.Default;
}
}
///
/// 查找空闲车辆
///
public class FindFreeCarDto
{
///
/// 工站编号
///
public string stanCode { set; get; }
}
///
/// jgr的命令代码
///
public enum JgrCmdCode : int
{
///
/// 默认,实际上这条命令什么都没干
///
Default= 0,
///
/// 小车系统重启
///
Restart = 1,
///
/// 设置电源
///
SetPower = 2,
///
/// 设置终点
///
SetEndPoint = 3,
///
/// 移动到设置的终点
///
StartMove = 4,
///
/// 正常中止,停在前进方向最近的一格上
///
StopNormal = 5,
///
/// 急停,最短距离停下
///
StopEmergency = 6,
///
/// 前进方向移动到下一格
///
MoveForward = 7,
///
/// 后退一格
///
MoveBack = 8,
///
/// 前进方向左侧移动一格
///
MoveLeft = 9,
///
/// 前进方向右侧移动一格
///
MoveRight = 10,
///
/// 车轮置顶
///
SetWheelTop = 11,
///
/// 车轮置底
///
SetWheelBottom = 12,
///
/// 车轮置在中间,四轮着地
///
SetWheelMiddle= 13,
///
/// 吊篮提起
///
BasketUp = 14,
///
/// 吊篮放下
///
BasketDown = 15,
///
/// 吊篮停止运动
///
BasketStopMoving = 16,
///
/// 吊篮夹子张开
///
GripperOpen = 17,
///
/// 吊篮夹子闭合
///
GripperClose = 18,
///
/// 开始充电
///
StartCharging = 19,
///
/// 停止充电
///
StopCharging = 20,
///
/// 调试模式
///
DebugModel = 21,
///
/// 正常模式
///
NormalModel = 22,
///
/// 电机通电
///
MonitorPowerOn = 23,
///
/// 电机断电
///
MonitorPowerOff = 24
}
}