27 #include "gtest/gtest.h" 33 #include "modules/planning/proto/planning_config.pb.h" 55 bool Init(
const PlanningConfig& config)
override;
80 double start_v,
double start_a,
double start_da,
81 const std::vector<common::PathPoint>& path_points,
82 const std::vector<const Obstacle*>& obstacles,
83 const std::function<
const Obstacle*(
const std::string&
id)>&
103 double vehicle_speed,
double path_length,
104 const std::vector<common::PathPoint>& path_points,
105 const std::vector<const Obstacle*>& obstacles,
106 const std::function<
const Obstacle*(
const std::string&
id)>&
121 const std::vector<common::PathPoint>& path_points);
129 void RecordDebugInfo(
const SpeedData& speed_data);
132 double preferred_speed_;
134 double preferred_accel_;
135 double preferred_decel_;
136 double preferred_jerk_;
139 double obstacle_buffer_;
140 double safe_distance_base_;
141 double safe_distance_ratio_;
142 double following_accel_ratio_;
143 double soft_centric_accel_limit_;
144 double hard_centric_accel_limit_;
145 double hard_speed_limit_;
146 double hard_accel_limit_;
147 bool enable_safe_path_;
148 bool enable_planning_start_point_;
149 bool enable_accel_auto_compensation_;
150 double kappa_preview_;
151 double kappa_threshold_;
156 double prev_v_ = 0.0;
157 double accel_compensation_ratio_ = 1.0;
158 double decel_compensation_ratio_ = 1.0;
160 FRIEND_TEST(NaviSpeedDeciderTest, CreateSpeedData);
161 FRIEND_TEST(NaviSpeedDeciderTest, CreateSpeedDataForStaticObstacle);
162 FRIEND_TEST(NaviSpeedDeciderTest, CreateSpeedDataForObstacles);
163 FRIEND_TEST(NaviSpeedDeciderTest, CreateSpeedDataForCurve);
apollo::common::Status Execute(Frame *frame, ReferenceLineInfo *reference_line_info) override
Overrided implementation of the virtual function "Execute" in the base class "Task".
This is the class that associates an Obstacle with its path properties. An obstacle's path properties...
Definition: obstacle.h:60
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
This file provides the declaration of the class "NaviSpeedTsGraph".
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
virtual ~NaviSpeedDecider()=default
Definition: navi_task.h:33
bool Init(const PlanningConfig &config) override
NaviSpeedTsGraph is used to generate a t-s graph with some limits and preferred.
Definition: navi_speed_ts_graph.h:78
This file provides the declaration of the class "NaviSpeedDecider".
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
NaviSpeedDecider is used to generate an appropriate speed curve of the vehicle in navigation mode...
Definition: navi_speed_decider.h:50
NaviObstacleDecider is used to make appropriate decisions for obstacles around the vehicle in navigat...
Definition: navi_obstacle_decider.h:51
Definition: speed_data.h:30