轨道区段

This commit is contained in:
Yuan 2023-08-15 11:13:55 +08:00
parent 269cba242a
commit 0c23c16549

View File

@ -32,7 +32,9 @@ message RtssGraphicStorage {
repeated CalculateLink CalculateLink = 24; // link信息 repeated CalculateLink CalculateLink = 24; // link信息
repeated SlopeKiloMarker slopeKiloMarker = 25; // repeated SlopeKiloMarker slopeKiloMarker = 25; //
repeated CurvatureKiloMarker curvatureKiloMarker = 26; // repeated CurvatureKiloMarker curvatureKiloMarker = 26; //
repeated Curvature curvatures = 27; // repeated Curvature curvatures = 27; //
repeated TrackSection trackSections = 28; //
repeated TrackLogicSection trackLogicSections = 29; //
} }
message Canvas { message Canvas {
@ -166,6 +168,9 @@ message Turnout { //(后端不关注)
// KilometerSystem kilometerSystem = 12; // // KilometerSystem kilometerSystem = 12; //
repeated KilometerSystem kilometerSystem = 13; // repeated KilometerSystem kilometerSystem = 13; //
int32 index = 14; // int32 index = 14; //
string paTrackSectionId = 15; // A端轨道区段id
string pbTrackSectionId = 16; // B端轨道区段id
string pcTrackSectionId = 17; // C端轨道区段id
} }
/** 左右行 **/ /** 左右行 **/
@ -206,6 +211,7 @@ message Section {
SectionType sectionType = 6; // SectionType sectionType = 6; //
repeated string axleCountings = 7; // repeated string axleCountings = 7; //
int32 index = 8; // int32 index = 8; //
string trackSectionId = 9; // id
} }
// //
@ -264,9 +270,12 @@ message SectionLink {
string code = 2; string code = 2;
repeated Point points = 3; repeated Point points = 3;
bool up = 4; // bool up = 4; //
SimpleRef aSimRef = 5; // SectionLink A端连接设备 AxleCounting/Turnout // SimpleRef aSimRef =
SimpleRef bSimRef = 6; // SectionLink B端连接设备 AxleCounting/Turnout // 5; // SectionLink A端连接设备 AxleCounting/Turnout //
RelatedRef aRef = 7; // SectionLink A端连接设备 SectionLink/Turnout SimpleRef bSimRef =
6; // SectionLink B端连接设备 AxleCounting/Turnout //
RelatedRef aRef =
7; // SectionLink A端连接设备 SectionLink/Turnout
RelatedRef bRef = 8; // SectionLink B端连接设备 RelatedRef bRef = 8; // SectionLink B端连接设备
// SectionLink/Turnout // SectionLink/Turnout
int32 index = 9; // int32 index = 9; //
@ -292,6 +301,28 @@ message LogicSection { // 逻辑区段
6; // idC端关联的轨道link 6; // idC端关联的轨道link
} }
message TrackSection { //
enum TrackSectionType {
NORMAL = 0; //
FORK = 1; //
}
CommonInfo common = 1;
repeated Point points = 2;
string code = 3; //
int32 index = 4; //
TrackSectionType type = 5; //
string destinationCode = 6; //
repeated string trackLogicSection = 7; //id()
// //id(/)(/)
}
message TrackLogicSection { //
CommonInfo common = 1;
repeated Point points = 2;
string code = 3; //
int32 length = 4; //(mm)
}
message StopPosition { message StopPosition {
enum CoachNum { enum CoachNum {
Four = 0; Four = 0;
@ -354,7 +385,7 @@ message Slope {
message Curvature { message Curvature {
CommonInfo common = 1; CommonInfo common = 1;
repeated Point points = 2; repeated Point points = 2;
sint32 curvatureNumber = 3; //线-- sint32 curvatureNumber = 3; //线--
repeated string refDeviceId = 4; // 线() repeated string refDeviceId = 4; // 线()
} }
@ -366,7 +397,7 @@ message CalculateLink {
RelatedRef aRelatedRef = 4; // A端 RelatedRef aRelatedRef = 4; // A端
RelatedRef bRelatedRef = 5; // B端 RelatedRef bRelatedRef = 5; // B端
repeated DevicePosition devicePositions = 6; //link上的位置 repeated DevicePosition devicePositions = 6; //link上的位置
int32 index = 7; //link唯一标识 int32 index = 7; // link唯一标识
message DevicePosition { message DevicePosition {
int32 offset = 1; int32 offset = 1;
string deviceId = 2; string deviceId = 2;