Function calc_angle_cost_for_configuration

Function Documentation

arma::fmat calc_angle_cost_for_configuration(const arma::mat &points_xy, const arma::imat &configurations, ConeType cone_type)

Calculates the cost related to angles between cones for each configuration.

Parameters:
  • points_xy – Matrix of cone 2D coordinates.

  • configurations – Matrix of cone index configurations.

  • cone_type – Type of cones (LEFT or RIGHT).

Returns:

Vector of angle costs for each configuration.