|
| 1 | +// Define Collection map-data check messages |
| 2 | +syntax = "proto2"; |
| 3 | +package apollo.hdmap; |
| 4 | + |
| 5 | +import "modules/map/tools/map_datachecker/proto/collection_error_code.proto"; |
| 6 | + |
| 7 | +enum CmdType { |
| 8 | + START = 1; |
| 9 | + CHECK = 2; |
| 10 | + STOP = 3; |
| 11 | +} |
| 12 | + |
| 13 | +enum DataType { |
| 14 | + MAP_MAKING = 1; |
| 15 | + MAP_CHECKOUT = 2; |
| 16 | +} |
| 17 | + |
| 18 | +message VerifyRange { |
| 19 | + optional double start_time = 1; // verify data's start timestamp |
| 20 | + optional double end_time = 2; // verify data's end timestamp |
| 21 | +} |
| 22 | + |
| 23 | +message LoopResult { |
| 24 | + required bool is_reached = 1; |
| 25 | + optional double loop_num = 2; // is_reached==false, indicate current laps |
| 26 | +} |
| 27 | + |
| 28 | +message TopicResult { |
| 29 | + repeated string topic_lack = 1; |
| 30 | +} |
| 31 | + |
| 32 | +message FrameRate { |
| 33 | + optional string topic = 1; |
| 34 | + optional double expected_rate = 2; |
| 35 | + optional double current_rate = 3; |
| 36 | + repeated string bad_record_name = 4; // record path file name, maybe more than one. |
| 37 | +} |
| 38 | + |
| 39 | +message VerifyResult { |
| 40 | + optional TopicResult topics = 1; |
| 41 | + repeated FrameRate rates = 2; |
| 42 | +} |
| 43 | + |
| 44 | +// ChannelVerify API, multi-service used |
| 45 | +message ChannelVerifyRequest { |
| 46 | + optional CmdType cmd = 1; |
| 47 | + optional string collect_id = 2; |
| 48 | + optional string path = 3; |
| 49 | +} |
| 50 | + |
| 51 | +message ChannelVerifyResponse { |
| 52 | + optional ErrorCode code = 1; |
| 53 | + optional VerifyResult result = 2; |
| 54 | +} |
| 55 | + |
| 56 | +// LoopsVerify API, multi-service used |
| 57 | +message LoopsVerifyRequest { |
| 58 | + optional CmdType cmd = 1; |
| 59 | + optional DataType type = 2; |
| 60 | + repeated VerifyRange range = 3; // used by map-worker. verify data's timestamp ranges, maybe has more than one. |
| 61 | +} |
| 62 | + |
| 63 | +message LoopsVerifyResponse { |
| 64 | + optional ErrorCode code = 1; |
| 65 | + optional double progress = 2; |
| 66 | + optional LoopResult loop_result = 3; // usable when progress==1 |
| 67 | +} |
| 68 | + |
| 69 | +// DynamicAlign API, multi-service used |
| 70 | +message DynamicAlignRequest { |
| 71 | + optional CmdType cmd = 1; |
| 72 | +} |
| 73 | + |
| 74 | +message DynamicAlignResponse { |
| 75 | + optional ErrorCode code = 1; |
| 76 | + optional double progress = 2; |
| 77 | +} |
| 78 | + |
| 79 | +// StaticAlign API, multi-service used |
| 80 | +message StaticAlignRequest { |
| 81 | + optional CmdType cmd = 1; |
| 82 | +} |
| 83 | + |
| 84 | +message StaticAlignResponse { |
| 85 | + optional ErrorCode code = 1; |
| 86 | + optional double progress = 2; |
| 87 | +} |
| 88 | + |
| 89 | +// EightRoute API, multi-service used |
| 90 | +message EightRouteRequest { |
| 91 | + optional CmdType cmd = 1; |
| 92 | +} |
| 93 | + |
| 94 | +message EightRouteResponse { |
| 95 | + optional ErrorCode code = 1; |
| 96 | + optional double progress = 2; |
| 97 | +} |
0 commit comments