Function handle_same_cone_in_both_configs

Function Documentation

std::pair<std::vector<int>, std::vector<int>> handle_same_cone_in_both_configs(std::vector<std::array<float, 3>> cones, std::vector<int> right_configuration, std::vector<int> left_configuration)

Calculate the new configuration if a cone is present in both configurations.

Parameters:
  • cones – Vector of cones represented as arrays of three floats [x, y, type].

  • right_configuration – The best right configuration.

  • left_configuration – The best left configuration.

Returns:

A pair of vectors containing the new right and left configurations.