Merge branch 'master' of https://git.code.tencent.com/beijing-rtss-test/bj-rtss-message
This commit is contained in:
commit
57784d00f2
@ -65,67 +65,75 @@ message StationState{
|
||||
message TrainState{
|
||||
//列车索引
|
||||
string id = 1;
|
||||
//列车初始运行方向,即添加列车时
|
||||
//true - 上行方向运行
|
||||
//false - 下行方向运行
|
||||
//列车初始link运行方向
|
||||
bool up = 2;
|
||||
// 列车初始速度
|
||||
float speed = 3;
|
||||
//列车长度,1=1mm
|
||||
int64 trainLength = 4;
|
||||
//列车是否显示
|
||||
bool show = 5;
|
||||
// 列车车头所在设备ID
|
||||
string headDeviceId = 6;
|
||||
// 列车车头所在设备偏移量
|
||||
int64 headOffset = 7;
|
||||
// 设备端口
|
||||
string devicePort = 8;
|
||||
// 运行方向指向(区段:A-B,道岔:-> 岔心)
|
||||
bool pointTo = 9;
|
||||
// 运行上下行(公里标 上行:小 -> 大,下行:大 -> 小)
|
||||
bool runDirection = 10;
|
||||
// 列车车头方向
|
||||
bool headDirection = 11;
|
||||
// 动力学信息
|
||||
TrainDynamicState dynamicState = 12;
|
||||
// 半实物信息
|
||||
TrainVobcState vobcState = 13;
|
||||
}
|
||||
|
||||
// 动力学列车状态
|
||||
message TrainDynamicState {
|
||||
// 生命信号 每个周期+1
|
||||
int32 heartbeat = 1;
|
||||
//车头所在link的索引
|
||||
string headLinkId = 3;
|
||||
string headLinkId = 2;
|
||||
//车头所在link内的偏移量,单位为mm
|
||||
int64 headLinkOffset = 4;
|
||||
int64 headLinkOffset = 3;
|
||||
//车尾所在link的索引
|
||||
string tailLinkId = 5;
|
||||
string tailLinkId = 4;
|
||||
//车尾所在link内的偏移量,单位为mm
|
||||
int64 tailLinkOffset = 6;
|
||||
int64 tailLinkOffset = 5;
|
||||
//列车所占用的link的索引的列表
|
||||
//顺序为从车头到车尾
|
||||
repeated string occupiedLinkIndex = 7;
|
||||
//生命信号
|
||||
int32 heartbeat = 8;
|
||||
repeated string occupiedLinkIndex = 6;
|
||||
//列车所在位置坡度值,1=1‰
|
||||
int32 slope = 9;
|
||||
int32 slope = 7;
|
||||
//列车所在位置坡度走势,1=上坡true,0=下坡false
|
||||
bool upslope = 10;
|
||||
bool upslope = 8;
|
||||
//列车当前运行方向,1 =上行true 0 =下行false
|
||||
bool runningUp = 11;
|
||||
//实际运行阻力(总),1=1KN
|
||||
float runningResistanceSum = 12;
|
||||
//阻力1(空气阻力),1=1KN
|
||||
float airResistance = 13;
|
||||
//阻力2(坡道阻力),1=1KN
|
||||
float rampResistance = 14;
|
||||
//阻力3(曲线阻力),1=1KN
|
||||
float curveResistance = 15;
|
||||
//列车运行速度,1=1km/h
|
||||
float speed = 16;
|
||||
//头车速传1速度值,1=1km/h
|
||||
float headSensorSpeed1 = 17;
|
||||
//头车速传2速度值,1=1km/h
|
||||
float headSensorSpeed2 = 18;
|
||||
//尾车速传1速度值,1=1km/h
|
||||
float tailSensorSpeed1 = 19;
|
||||
//尾车速度2速度值,1=1km/h
|
||||
float tailSensorSpeed2 = 20;
|
||||
//头车雷达速度值,1=1km/h
|
||||
float headRadarSpeed = 21;
|
||||
//尾车雷达速度值,1=1km/h
|
||||
float tailRadarSpeed = 22;
|
||||
//列车长度,1=1mm
|
||||
int64 trainLength = 23;
|
||||
//列车是否显示
|
||||
bool show = 24;
|
||||
// 列车车头所在设备ID
|
||||
string headDeviceId = 25;
|
||||
// 列车车头所在设备偏移量
|
||||
int64 headOffset = 26;
|
||||
// 设备端口
|
||||
string devicePort = 27;
|
||||
// 运行方向指向(区段:A-B,道岔:-> 岔心)
|
||||
bool pointTo = 28;
|
||||
// 运行上下行(公里标 上行:小 -> 大,下行:大 -> 小)
|
||||
bool runDirection = 29;
|
||||
// 列车车头方向
|
||||
bool headDirection = 30;
|
||||
bool runningUp = 9;
|
||||
//实际运行阻力(总)(N)totalResistance,1=1KN
|
||||
float runningResistanceSum = 10;
|
||||
//阻力1(空气阻力)(N)airResistance,1=1KN
|
||||
float airResistance = 11;
|
||||
//阻力2(坡道阻力)(N)slopeResistance,1=1KN
|
||||
float rampResistance = 12;
|
||||
//阻力3(曲线阻力)(N)curveResistance,1=1KN
|
||||
float curveResistance = 13;
|
||||
//列车运行速度(m/s)speed,1=1km/h
|
||||
float speed = 14;
|
||||
//头车速传1速度值(m/s)headSpeed1,1=1km/h
|
||||
float headSensorSpeed1 = 15;
|
||||
//头车速度2速度值(m/s)headSpeed2,1=1km/h
|
||||
float headSensorSpeed2 = 16;
|
||||
//尾车速传1速度值(m/s)tailSpeed1,1=1km/h
|
||||
float tailSensorSpeed1 = 17;
|
||||
//尾车速度2速度值(m/s)tailSpeed2,1=1km/h
|
||||
float tailSensorSpeed2 = 18;
|
||||
//头车雷达速度值(m/s)headRadarSpeed,1=1km/h
|
||||
float headRadarSpeed = 19;
|
||||
//尾车雷达速度值(m/s)tailRadarSpeed,1=1km/h
|
||||
float tailRadarSpeed = 20;
|
||||
}
|
||||
|
||||
// vobc发过来的列车信息
|
||||
|
@ -1,8 +1,12 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "./ats/verify/protos/graphicData";
|
||||
|
||||
enum PictureType {
|
||||
/** 平面布置图 */
|
||||
StationLayout = 0;
|
||||
/** Psl界面 */
|
||||
Psl = 1;
|
||||
/** 继电器柜界面 */
|
||||
RelayCabinetLayout = 2;
|
||||
}
|
||||
|
67
protos/relayCabinetLayoutGraphics.proto
Normal file
67
protos/relayCabinetLayoutGraphics.proto
Normal file
@ -0,0 +1,67 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package graphicData;
|
||||
option java_package = "club.joylink.bjrtss.ats.verify.protos";
|
||||
option java_outer_classname = "LayoutGraphicsProto";
|
||||
option go_package = "./ats/verify/protos/graphicData";
|
||||
|
||||
message RelayCabinetGraphicStorage {
|
||||
Canvas canvas = 1;
|
||||
repeated RelayCabinet relayCabinets = 2;
|
||||
repeated Relay relays = 3;
|
||||
}
|
||||
|
||||
message Canvas {
|
||||
// 画布宽
|
||||
int32 width = 1;
|
||||
// 画布高
|
||||
int32 height = 2;
|
||||
// 背景色
|
||||
string backgroundColor = 3;
|
||||
// 视口变换
|
||||
Transform viewportTransform = 4;
|
||||
}
|
||||
|
||||
message Point {
|
||||
// x坐标
|
||||
float x = 1;
|
||||
// y坐标
|
||||
float y = 2;
|
||||
}
|
||||
|
||||
//变换
|
||||
message Transform {
|
||||
// 位移
|
||||
Point position = 1;
|
||||
// 缩放
|
||||
Point scale = 2;
|
||||
// 旋转弧度
|
||||
float rotation = 3;
|
||||
// 歪斜
|
||||
Point skew = 4;
|
||||
}
|
||||
|
||||
//子元素变换
|
||||
message ChildTransform {
|
||||
// 子元素名称
|
||||
string name = 1;
|
||||
// 子元素变换
|
||||
Transform transform = 2;
|
||||
}
|
||||
// 公共属性
|
||||
message CommonInfo {
|
||||
string id = 1;
|
||||
string graphicType = 2;
|
||||
Transform transform = 3;
|
||||
repeated ChildTransform childTransforms = 4;
|
||||
}
|
||||
|
||||
message RelayCabinet {
|
||||
CommonInfo common = 1;
|
||||
string code = 2;
|
||||
}
|
||||
|
||||
message Relay {
|
||||
CommonInfo common = 1;
|
||||
string code = 2;
|
||||
}
|
Loading…
Reference in New Issue
Block a user