Function calc_initial_direction_cost
Defined in File calculate_costs.hpp
Function Documentation
-
arma::fvec calc_initial_direction_cost(const arma::mat &points_xy, const arma::imat &configurations, const arma::fvec &vehicle_direction)
Calculates the cost based on the deviation of the initial direction from the vehicle’s heading.
- Parameters:
points_xy – Matrix of cone 2D coordinates.
configurations – Matrix of cone index configurations.
vehicle_direction – Current vehicle direction vector.
- Returns:
Vector of initial direction costs for each configuration.