49 AINFO <<
"GetNewRouting: localization_pose: " << pose.
position().
x() <<
" "
50 << pose.
position().
y() <<
", begin point " << begin_point_.
x() <<
" "
51 << begin_point_.
y() <<
", end point " << end_point_.
x() <<
" "
52 << end_point_.
y() <<
", threshold "
53 << FLAGS_task_manager_threshold_for_destination_check
54 <<
", allowed_to_send_routing_request " << is_allowed_to_route_;
56 if (is_allowed_to_route_) {
59 FLAGS_task_manager_threshold_for_destination_check)) {
60 AINFO <<
"GetNewRouting: reach begin point."
61 <<
"Remaining cycles: " << cycle_;
62 lane_follow_command->CopyFrom(original_lane_follow_command_);
63 auto cur_point = lane_follow_command->mutable_way_point(0);
67 cur_point->set_heading(pose.
heading());
68 is_allowed_to_route_ =
false;
74 FLAGS_task_manager_threshold_for_destination_check)) {
75 AINFO <<
"GetNewRouting: reach end point. "
76 <<
"Remaining cycles: " << cycle_;
77 lane_follow_command->clear_way_point();
78 auto cur_point = lane_follow_command->add_way_point();
82 cur_point->set_heading(pose.
heading());
83 auto end_pose = lane_follow_command->mutable_end_pose();
84 end_pose->CopyFrom(begin_point_);
86 is_allowed_to_route_ =
true;