planning.proto 3.2 KB
Newer Older
D
Dong Li 已提交
1 2 3 4 5
syntax = "proto2";

package apollo.planning;

import "modules/common/proto/header.proto";
6
import "modules/common/proto/vehicle_signal.proto";
7
import "modules/common/proto/path_point.proto";
D
Dong Li 已提交
8
import "modules/canbus/proto/chassis.proto";
9
import "modules/planning/proto/decision.proto";
D
Dong Li 已提交
10 11
import "modules/planning/proto/planning_internal.proto";

12
message SpeedPoint {
13 14
  optional double s = 1;
  optional double t = 2;
15
  // speed (m/s)
16
  optional double v = 3;
17
  // acceleration (m/s^2)
18
  optional double a = 4;
19
  // jerk (m/s^3)
20
  optional double da = 5;
21 22
}

J
Jiangtao Hu 已提交
23
// Deprecated: replaced by apollo.common.TrajectoryPoint
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
message ADCTrajectoryPoint {
  optional double x = 1;  // in meters.
  optional double y = 2;  // in meters.
  optional double z = 3;  // height in meters.

  optional double speed = 6;  // speed, in meters / second
  optional double acceleration_s = 7;  // acceleration in s direction
  optional double curvature = 8;  // curvature (k = 1/r), unit: (1/meters)
  // change of curvature in unit s (dk/ds)
  optional double curvature_change_rate = 9;
  // in seconds (relative_time = time_of_this_state - timestamp_in_header)
  optional double relative_time = 10;
  optional double theta = 11;  // relative to absolute coordinate system
  // calculated from the first point in this trajectory
  optional double accumulated_s = 12;

  // in meters, reference to route SL-coordinate
  optional double s = 4 [deprecated = true];
  // in meters, reference to route SL-coordinate
  optional double l = 5 [deprecated = true];
}

J
Jiangtao Hu 已提交
46
// Deprecated: replaced by apollo.common.PathPoint
47 48 49 50 51 52 53 54 55
message ADCPathPoint {
  optional double x = 1;  // in meters
  optional double y = 2;  // in meters
  optional double z = 3;  // in meters
  optional double curvature = 4;  // curvature (k = 1/r), unit: (1/meters)
  optional double heading = 5;  // relative to absolute coordinate system
}


D
Dong Li 已提交
56
message ADCSignals {
A
Aaron Xiao 已提交
57 58 59 60 61 62 63 64 65
  enum SignalType {
    LEFT_TURN = 1;
    RIGHT_TURN = 2;
    LOW_BEAM_LIGHT = 3;
    HIGH_BEAM_LIGHT = 4;
    FOG_LIGHT = 5;
    EMERGENCY_LIGHT = 6;
  }
  repeated SignalType signal = 1;
D
Dong Li 已提交
66 67 68
}

message EStop {
A
Aaron Xiao 已提交
69 70
  // is_estop == true when emergency stop is required
  optional bool is_estop = 1;
D
Dong Li 已提交
71 72
}

J
Jiangtao Hu 已提交
73 74 75 76 77
message ProcessorStats {
  optional string name = 1;
  optional double time_ms = 2;
}

78 79
message LatencyStats {
  optional double total_time_ms = 1;
J
Jiangtao Hu 已提交
80
  repeated ProcessorStats processor_stats = 2;
81 82 83
}

// next id: 16
D
Dong Li 已提交
84
message ADCTrajectory {
A
Aaron Xiao 已提交
85 86 87
  optional apollo.common.Header header = 1;
  optional double total_path_length = 2; // in meters
  optional double total_path_time = 3; // in seconds
88
  repeated apollo.common.TrajectoryPoint trajectory_point = 12;
A
Aaron Xiao 已提交
89
  optional EStop estop = 6;
90
  repeated apollo.common.PathPoint path_point = 13;
91
  optional apollo.planning_internal.Debug debug = 8;
A
Aaron Xiao 已提交
92 93 94 95
  // is_replan == true mean replan triggered
  optional bool is_replan = 9 [default = false];
  // Specify trajectory gear
  optional apollo.canbus.Chassis.GearPosition gear = 10;
96
  optional apollo.common.VehicleSignal signal = 11;
97
  optional apollo.planning.DecisionResult decision = 14;
98
  optional LatencyStats latency_stats = 15;
99

J
Jiangtao Hu 已提交
100
  // replaced by path_point
101
  repeated ADCPathPoint adc_path_point = 7 [deprecated=true];
J
Jiangtao Hu 已提交
102
  // replaced by trajectory_point
103
  repeated ADCTrajectoryPoint adc_trajectory_point = 4 [deprecated=true];
D
Dong Li 已提交
104
}