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

package apollo.planning;

import "modules/common/proto/header.proto";
import "modules/canbus/proto/chassis.proto";
import "modules/planning/proto/planning_internal.proto";

K
Kecheng Xu 已提交
9
// TODO(aaron): Migrate to apollo::common::TrajectoryPoint.
D
Dong Li 已提交
10
message ADCTrajectoryPoint {
A
Aaron Xiao 已提交
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
  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];
D
Dong Li 已提交
30 31 32
}

message ADCSignals {
A
Aaron Xiao 已提交
33 34 35 36 37 38 39 40 41
  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 已提交
42 43 44
}

message EStop {
A
Aaron Xiao 已提交
45 46
  // is_estop == true when emergency stop is required
  optional bool is_estop = 1;
D
Dong Li 已提交
47 48
}

K
Kecheng Xu 已提交
49
// TODO(aaron): Migrate to apollo::common::PathPoint.
D
Dong Li 已提交
50
message ADCPathPoint {
A
Aaron Xiao 已提交
51 52 53 54 55
  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 57 58
}

message ADCTrajectory {
A
Aaron Xiao 已提交
59 60 61 62 63 64 65 66 67 68 69 70 71 72
  optional apollo.common.Header header = 1;
  optional double total_path_length = 2; // in meters
  optional double total_path_time = 3; // in seconds
  repeated ADCTrajectoryPoint adc_trajectory_point = 4;
  optional EStop estop = 6;
  repeated ADCPathPoint adc_path_point = 7;
  // is_replan == true mean replan triggered
  optional bool is_replan = 9 [default = false];
  // Specify trajectory gear
  optional apollo.canbus.Chassis.GearPosition gear = 10;
  optional apollo.planning_internal.Debug debug = 8;
  optional apollo.canbus.Signal signal = 11;

  optional ADCSignals signals = 5 [deprecated = true];
D
Dong Li 已提交
73
}