Skip to content

Commit

Permalink
planning: add traffic light feature into learning_data proto
Browse files Browse the repository at this point in the history
  • Loading branch information
jmtao authored and xiaoxq committed Feb 21, 2020
1 parent d366b06 commit d09c715
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/planning/proto/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ proto_library(
"//modules/canbus/proto:canbus_proto_lib",
"//modules/common/proto:geometry_proto_lib",
"//modules/common/proto:pnc_point_proto_lib",
"//modules/perception/proto:perception_proto_lib",
],
)

Expand Down
9 changes: 8 additions & 1 deletion modules/planning/proto/learning_data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package apollo.planning;
import "modules/canbus/proto/chassis.proto";
import "modules/common/proto/geometry.proto";
import "modules/common/proto/pnc_point.proto";
import "modules/perception/proto/traffic_light_detection.proto";

message ObstacleFeature {
// TODO(all): add more obstacle features.
Expand Down Expand Up @@ -57,6 +58,11 @@ message ChassisFeature {
optional apollo.canbus.Chassis.GearPosition gear_location = 5;
}

message TrafficLightFeature {
optional string light_id = 1;
optional apollo.perception.TrafficLight.Color color = 2;
}

message LearningDataFrame {
// Message publishing time in seconds.
optional double timestamp_sec = 1;
Expand All @@ -79,5 +85,6 @@ message LearningDataFrame {
}

message LearningData {
repeated LearningDataFrame learning_data = 1;
repeated TrafficLightFeature traffic_light = 1;
repeated LearningDataFrame learning_data = 2;
}

0 comments on commit d09c715

Please sign in to comment.