Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
path_calculation_config.hpp
Go to the documentation of this file.
1#ifndef SRC_PLANNING_INCLUDE_CONFIG_PATH_CALCULATION_CONFIG_HPP_
2#define SRC_PLANNING_INCLUDE_CONFIG_PATH_CALCULATION_CONFIG_HPP_
3
5
11
16
21
26
31
36
40 double max_cost_;
41
46
51
56
61
66
71
76
95
99 PathCalculationConfig(const MidpointGeneratorConfig& mg_config, bool use_sliding_window,
100 double angle_gain, double distance_gain, double angle_exponent,
101 double distance_exponent, double max_cost, double minimum_point_distance,
102 int lookback_points, int search_depth, int max_points, int reset_interval,
103 bool use_reset_path, double close_cost)
104 : midpoint_generator_(mg_config),
105 use_sliding_window_(use_sliding_window),
106 angle_gain_(angle_gain),
107 distance_gain_(distance_gain),
108 angle_exponent_(angle_exponent),
109 distance_exponent_(distance_exponent),
110 max_cost_(max_cost),
111 minimum_point_distance_(minimum_point_distance),
112 lookback_points_(lookback_points),
113 search_depth_(search_depth),
114 max_points_(max_points),
115 reset_interval_(reset_interval),
116 use_reset_path_(use_reset_path),
117 close_cost_(close_cost) {}
118};
119
120#endif // SRC_PLANNING_INCLUDE_CONFIG_PATH_CALCULATION_CONFIG_HPP_
Configuration parameters for the Midpoint Generator class.
int max_points_
Maximum number of points added in an iteration.
int lookback_points_
Number of recent path points discarded and recalculated each iteration.
double angle_exponent_
Exponent applied to the angle term in the cost function.
double distance_exponent_
Exponent applied to the distance term in the cost function.
double minimum_point_distance_
Minimum allowed distance between consecutive points in the generated path.
PathCalculationConfig(const MidpointGeneratorConfig &mg_config, bool use_sliding_window, double angle_gain, double distance_gain, double angle_exponent, double distance_exponent, double max_cost, double minimum_point_distance, int lookback_points, int search_depth, int max_points, int reset_interval, bool use_reset_path, double close_cost)
Parameterized constructor.
double angle_gain_
Gain applied to the angle term in the cost function.
double distance_gain_
Gain applied to the distance term in the cost function.
double close_cost_
Cost threshold to determine whether the path is considered closed.
MidpointGeneratorConfig midpoint_generator_
Configuration for the Midpoint Generator class.
int reset_interval_
Number of iterations before triggering a full path regeneration.
double max_cost_
Maximum allowed cost for a path.
PathCalculationConfig()
Default constructor.
bool use_sliding_window_
Flag to enable/disable the sliding window for path calculation.
bool use_reset_path_
Flag to enable/disable path reset logic.
int search_depth_
Maximum search depth when exploring candidate paths.