Apollo 10.0
自动驾驶开放平台
agent.proto
浏览该文件的文档.
1syntax = "proto2";
2
3package apollo.simulation;
4
5message AgentConfig {
6 optional int32 id = 1;
7 optional string description = 2;
8 optional double width = 3 [default = 2.0];
9 optional double length = 4 [default = 5.0];
10 optional double height = 5 [default = 1.8];
11 enum Type {
12 VEHICLE = 0;
13 BICYCLE = 1;
14 PEDESTRIAN = 2;
15 UNKNOWN_UNMOVABLE = 3;
16 UNKNOWN_MOVABLE = 4;
17 BIG_TRUCK = 5;
18 }
19 optional Type type = 6;
20
21 optional double appear_time = 7 [deprecated = true];
22 optional double disappear_time = 8 [deprecated = true];
23
24 message TrackedPoint {
25 optional double x = 1;
26 optional double y = 2;
27 optional double heading = 3;
28 optional double speed = 4;
29 optional double acceleration = 5;
30 }
31 repeated TrackedPoint tracked_point = 9;
32
33 // Static, lane follow and tracked objects.
35 STATIC = 0;
36 LANE_FOLLOW = 1; // not implemented
37 TRACKED = 2;
38 }
39 optional MotionType motiontype = 10;
40 optional double distance = 11;
41
42 optional TrackedPoint start_position = 12;
43 optional TrackedPoint end_position = 14;
44 optional string start_lane = 15;
45 optional string end_lane = 16;
46
48 DISTANCE = 0;
49 TIME = 1;
50 }
51 optional TriggerType trigger_type = 20;
52 optional double start_distance =
53 13; // Start when distance from adc < start_distance
54 optional double start_time = 21 [default = 0.0];
55
56 // Whether the agent avoids rear-end collision
57 optional bool avoid_rear_end_collision = 17 [default = true];
58 optional double rear_end_collision_distance = 18
59 [default = 3.0, deprecated = true];
60
61 // When an obstacle approaches the adc at a certain distance,
62 // it needs to decelerate.
63 message NearCar {
64 optional double distance = 1 [default = 20];
65 optional double acceleration = 2 [default = -2];
66 optional bool is_same_lane = 3 [default = false];
67 optional bool only_include_behind = 4 [default = true];
68 }
69 optional NearCar near_car = 19;
71 // Need to decelerate when an obstacle meets the crosswalk
72 message NearCrosswalk {
73 optional double distance = 1 [default = 15];
74 optional double acceleration = 2 [default = -1];
75 }
76 optional NearCrosswalk near_crosswalk = 22;
77}
syntax
Definition agent.proto:1