提交 4c389cd5 编写于 作者: J Jiangtao Hu 提交者: Yifei Jiang

record replan info into debug pb.

上级 7a88cb29
...@@ -250,6 +250,7 @@ bool Planning::Plan(const bool is_on_auto_mode, const double publish_time, ...@@ -250,6 +250,7 @@ bool Planning::Plan(const bool is_on_auto_mode, const double publish_time,
if (FLAGS_enable_record_debug) { if (FLAGS_enable_record_debug) {
trajectory_pb->mutable_debug()->mutable_planning_data() trajectory_pb->mutable_debug()->mutable_planning_data()
->mutable_init_point()->CopyFrom(vehicle_start_point); ->mutable_init_point()->CopyFrom(vehicle_start_point);
trajectory_pb->mutable_debug()->mutable_planning_data()->set_is_replan(true);
} }
auto status = planner_->MakePlan(vehicle_start_point, trajectory_pb); auto status = planner_->MakePlan(vehicle_start_point, trajectory_pb);
......
...@@ -87,7 +87,7 @@ message PathDebug { ...@@ -87,7 +87,7 @@ message PathDebug {
optional apollo.common.Path path = 2; optional apollo.common.Path path = 2;
} }
// next id: 11 // next id: 12
message PlanningData { message PlanningData {
optional apollo.common.Header header = 1; optional apollo.common.Header header = 1;
...@@ -96,6 +96,7 @@ message PlanningData { ...@@ -96,6 +96,7 @@ message PlanningData {
optional apollo.canbus.Chassis chassis = 8; optional apollo.canbus.Chassis chassis = 8;
optional apollo.hdmap.RoutingResult routing = 9; optional apollo.hdmap.RoutingResult routing = 9;
optional apollo.common.TrajectoryPoint init_point = 10; optional apollo.common.TrajectoryPoint init_point = 10;
optional bool is_replan = 11;
// processed planning_obstacles // processed planning_obstacles
repeated PlanningObstacle planning_obstacle = 4; repeated PlanningObstacle planning_obstacle = 4;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册