28 #include "gflags/gflags.h" 29 #include "gtest/gtest_prod.h" 30 #include "modules/common/proto/pnc_point.pb.h" 34 #include "modules/planning/proto/planning_config.pb.h" 35 #include "modules/planning/proto/task_config.pb.h" 58 bool Init(
const PlanningConfig &config)
override;
82 const common::TrajectoryPoint &init_point,
83 const std::vector<const Obstacle *> &obstacles,
94 std::vector<common::PathPoint> *
const path_points);
101 void MoveToDestLane(
const double dest_ref_line_y,
102 std::vector<common::PathPoint> *
const path_points);
109 void KeepLane(
const double dest_ref_line_y,
110 std::vector<common::PathPoint> *
const path_points);
112 void RecordDebugInfo(
const PathData &path_data);
133 const std::vector<common::PathPoint> &path_data_points,
134 const std::vector<const Obstacle *> &obstacles,
136 const common::VehicleState &vehicle_state);
140 double CalculateDistanceToDestLane();
143 double max_keep_lane_distance_ = 0.0;
144 double min_keep_lane_offset_ = 0.0;
145 double max_keep_lane_shift_y_ = 0.0;
146 double keep_lane_shift_compensation_ = 0.0;
147 double move_dest_lane_compensation_ = 0.0;
148 uint32_t start_plan_point_from_ = 0;
149 std::map<double, double> move_dest_lane_config_talbe_;
150 std::vector<double> max_speed_levels_;
152 double start_plan_v_ = 0.0;
153 double start_plan_a_ = 0.0;
154 apollo::common::PathPoint start_plan_point_;
156 std::string cur_reference_line_lane_id_;
157 std::map<std::string, bool> last_lane_id_to_nudge_flag_;
159 common::VehicleState vehicle_state_;
160 NaviPathDeciderConfig config_;
162 FRIEND_TEST(NaviPathDeciderTest, MoveToDestLane);
163 FRIEND_TEST(NaviPathDeciderTest, KeepLane);
PathDecision represents all obstacle decisions on one path.
Definition: path_decision.h:38
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Planning module main class. It processes GPS and IMU as input, to generate planning info...
Frame holds all data for one planning cycle.
Definition: frame.h:61
ReferenceLineInfo holds all data for one reference line.
Definition: reference_line_info.h:54
Definition: navi_task.h:33
apollo::common::Status Execute(Frame *frame, ReferenceLineInfo *reference_line_info) override
Overrided implementation of the virtual function "Execute" in the base class "Task".
Definition: path_data.h:36
This file provides the declaration of the class "NaviSpeedDecider".
Definition: reference_line.h:39
virtual ~NaviPathDecider()=default
bool Init(const PlanningConfig &config) override
A general class to denote the return status of an API call. It can either be an OK status for success...
Definition: status.h:43
NaviPathDecider is used to generate the local driving path of the .* vehicle in navigation mode...
Definition: navi_path_decider.h:53
NaviObstacleDecider is used to make appropriate decisions for obstacles around the vehicle in navigat...
Definition: navi_obstacle_decider.h:51