30 const bool out_of_lane,
const double safety_cost_,
31 const double smoothness_cost_)
40 for (
size_t i = 0; i <
cost_items.size(); ++i) {
56 static constexpr double kEpsilon = 1e-12;
59 if (std::fabs(diff) < kEpsilon) {
61 }
else if (diff > 0) {
73 for (
size_t i = 0; i <
cost_items.size(); ++i) {
static const size_t OUT_OF_BOUNDARY
bool operator<(const ComparableCost &other) const
int CompareTo(const ComparableCost &other) const
bool operator<=(const ComparableCost &other) const
ComparableCost operator+(const ComparableCost &other)
bool operator>=(const ComparableCost &other) const
ComparableCost(const ComparableCost &)=default
std::array< bool, 3 > cost_items
ComparableCost & operator+=(const ComparableCost &other)
ComparableCost(const bool has_collision, const bool out_of_boundary, const bool out_of_lane, const double safety_cost_, const double smoothness_cost_)
static const size_t OUT_OF_LANE
bool operator>(const ComparableCost &other) const
static const size_t HAS_COLLISION
Planning module main class.