29 look_backward_distance, 50,
30 "look backward this distance when creating reference line from routing");
33 "short look forward this distance when creating reference line "
34 "from routing when ADC is slow");
36 look_forward_long_distance, 250,
37 "look forward this distance when creating reference line from routing");
41 if (!IsValid(command)) {
42 AERROR <<
"Input command is not valid!" << command.DebugString();
50 auto forward_distance = velocity * FLAGS_look_forward_time_sec;
52 return forward_distance > FLAGS_look_forward_short_distance
53 ? FLAGS_look_forward_long_distance
54 : FLAGS_look_forward_short_distance;
static double LookForwardDistance(const double velocity)
virtual bool UpdatePlanningCommand(const planning::PlanningCommand &command)
planning::PlanningCommand last_command_
bool IsNewPlanningCommand(const planning::PlanningCommand &command) const
Check if the routing is the same as existing one in Map
Planning module main class.
bool IsProtoEqual(const ProtoA &a, const ProtoB &b)
DEFINE_double(look_backward_distance, 50, "look backward this distance when creating reference line from routing")
optional bool is_motion_command