Apollo 11.0
自动驾驶开放平台
planning_status.proto
浏览该文件的文档.
1syntax = "proto2";
2
3package apollo.planning;
4
7/*
8 This file defines the data types that represents the internal state of the
9 planning module.
10 It will not be refreshed in each planning cycle.
11*/
12
13
15 enum Status {
16 IN_CHANGE_LANE = 1; // during change lane state
17 CHANGE_LANE_FAILED = 2; // change lane failed
18 CHANGE_LANE_FINISHED = 3; // change lane finished
19 }
20 optional Status status = 1;
21 // the id of the route segment that the vehicle is driving on
22 optional string path_id = 2;
23 // the time stamp when the state started.
24 optional double timestamp = 3;
25}
26
28 // Counter for creep clearance
29 optional uint32 creep_clear_counter = 1;
30}
31
32message StopTime {
33 // Obstacle id stopping the vehicle
34 optional string obstacle_id = 1;
35 // the timestamp when start stopping for the crosswalk
36 optional double stop_timestamp_sec = 2;
37}
38
40 // Id of crosswalk
41 optional string crosswalk_id = 1;
42 // the timestamp when start stopping for the crosswalk
43 repeated StopTime stop_time = 2;
44 // Crosswalks already passed or finished
45 repeated string finished_crosswalk = 3;
46}
47
49 // If vehicle has passed destination
50 optional bool has_passed_destination = 1 [default = false];
51}
52
54 // Stop fence point for emergency stop
55 optional apollo.common.PointENU stop_fence_point = 1;
56}
57
59 // History of partitioned trajectories index
60 repeated string partitioned_trajectories_index_history = 1;
61 // If position has been initialized.
62 optional bool position_init = 2 [default = false];
63}
64
66 // Initial position of vehicle
67 optional apollo.common.PointENU adc_init_position = 1;
68 // Initial heading of vehicle
69 optional double adc_init_heading = 2;
70 // If current stage is "ParkAndGoStageCheck"
71 optional bool in_check_stage = 3;
72 // Mapped point on reference line near intial position of vehicle, which is
73 // used as end pose of openspace algorithm.
74 optional apollo.common.PointENU adc_adjust_end_pose = 4;
75}
76
78 // Cycle counter of front static obstacle's existance
79 optional int32 front_static_obstacle_cycle_counter = 1 [default = 0];
80 // If vehicle is in lane borrow scenario
81 optional bool is_in_path_lane_borrow_scenario = 2 [default = false];
82 // Blocking obstacle id in front of the vehicle
83 optional string front_static_obstacle_id = 3 [default = ""];
84 // If vehicle left borrow
85 optional bool left_borrow = 4 [default = false];
86 // If vehicle right borrow
87 optional bool right_borrow = 5 [default = false];
88}
89
92 PULL_OVER = 1; // pull-over upon destination arrival
93 EMERGENCY_PULL_OVER = 2; // emergency pull-over
94 }
95 // Current pullover type
96 optional PullOverType pull_over_type = 1;
97 // Indicate if current path is pull over path
98 optional bool plan_pull_over_path = 2 [default = false];
99 // Position of pull over
100 optional apollo.common.PointENU position = 3;
101 // Heading of pull over
102 optional double theta = 4;
103 // Front length for pull over region
104 optional double length_front = 5;
105 // Back length for pull over region
106 optional double length_back = 6;
107 // Left width for pull over region
108 optional double width_left = 7;
109 // Right width for pull over region
110 optional double width_right = 8;
111}
112
114 // Time of last rerouting
115 optional double last_rerouting_time = 1;
116 // If rerouting need to be done
117 optional bool need_rerouting = 2 [default = false];
118 // Last received planning command
119 optional apollo.external_command.LaneFollowCommand lane_follow_command=4;
120}
121
123 // Time of stopping at pedestrian
124 repeated StopTime pedestrian_stop_time = 1;
125}
126
128 // Current scenario type
129 optional string scenario_type = 1;
130 // Current stage type
131 optional string stage_type = 2;
132}
133
135 // Id of current stop sign overlap
136 optional string current_stop_sign_overlap_id = 1;
137 // Id of just finished stop sign overlap
138 optional string done_stop_sign_overlap_id = 2;
139 // Obstacles which the vehicle should stop for
140 repeated string wait_for_obstacle_id = 3;
141}
142
144 // Overlap id of current traffic light
145 repeated string current_traffic_light_overlap_id = 1;
146 // Overlap id of traffic light which is already done
147 repeated string done_traffic_light_overlap_id = 2;
148}
149
151 // Overlap id of current yield sign
152 repeated string current_yield_sign_overlap_id = 1;
153 // Overlap id of current yield sign which is already passed
154 repeated string done_yield_sign_overlap_id = 2;
155 // Obstacles which the vehicle should stop for
156 repeated string wait_for_obstacle_id = 3;
157}
158
160 // Is lane follow ok
161 optional bool lane_follow_block = 1 [default = false];
162 // Blocking obstacle id in front of the vehicle
163 optional string block_obstacle_id = 2 [default = ""];
164 // Last block time
165 optional double last_block_timestamp = 3 [default = 0];
166 // Duration of block
167 optional double block_duration = 4 [default = 0];
168}
169
171 // Is lane borrow ok
172 optional bool lane_borrow_block = 1 [default = false];
173 // Blocking obstacle id in front of the vehicle
174 optional string block_obstacle_id = 2 [default = ""];
175 // Last block time
176 optional double last_block_timestamp = 3 [default = 0];
177 // Duration of block
178 optional double block_duration = 4 [default = 0];
179}
180
181// note: please keep this one as minimal as possible. do NOT pollute it.
183 optional ChangeLaneStatus change_lane = 2;
184 optional CreepDeciderStatus creep_decider = 3;
185 optional CrosswalkStatus crosswalk = 4;
186 optional DestinationStatus destination = 5;
187 optional EmergencyStopStatus emergency_stop = 6;
188 optional OpenSpaceStatus open_space = 7;
189 optional ParkAndGoStatus park_and_go = 8;
190 optional PathDeciderStatus path_decider = 9;
191 optional PullOverStatus pull_over = 10;
192 optional ReroutingStatus rerouting = 11;
193 optional ScenarioStatus scenario = 12;
194 optional SpeedDeciderStatus speed_decider = 13;
195 optional StopSignStatus stop_sign = 14;
196 optional TrafficLightStatus traffic_light = 15;
197 optional YieldSignStatus yield_sign = 16;
198 optional LaneFollowStatus lane_follow = 17;
199 optional LaneBorrowStatus lane_borrow = 18;
200}
apollo::common
apollo::external_command
class register implement
Definition arena_queue.h:37