列车状态-运行方向
This commit is contained in:
parent
04303f8802
commit
0e8a73e102
@ -50,17 +50,21 @@ message SwitchState{
|
||||
message TrainState{
|
||||
//列车索引
|
||||
string id = 1;
|
||||
//列车运行方向
|
||||
//true - 上行方向运行
|
||||
//false - 下行方向运行
|
||||
bool up = 2;
|
||||
//车头所在link的索引
|
||||
string headLinkId = 2;
|
||||
string headLinkId = 3;
|
||||
//车头所在link内的偏移量,单位为mm
|
||||
int64 headLinkOffset = 3;
|
||||
int64 headLinkOffset = 4;
|
||||
//车尾所在link的索引
|
||||
string tailLinkId = 4;
|
||||
string tailLinkId = 5;
|
||||
//车尾所在link内的偏移量,单位为mm
|
||||
int64 tailLinkOffset = 5;
|
||||
int64 tailLinkOffset = 6;
|
||||
//列车所占用的link的索引的列表
|
||||
//顺序为从车头到车尾
|
||||
repeated string occupiedLinkId = 6;
|
||||
repeated string occupiedLinkIndex = 7;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user