Class DetectConflict

Nested Relationships

Nested Types

Class Documentation

class DetectConflict

Public Types

enum class Interpolate : uint16_t

Values:

enumerator CubicSpline

Public Static Functions

static std::optional<Conflict> between(const Profile &profile_a, const Trajectory &trajectory_a, const DependsOnCheckpoint *dependencies_of_a_on_b, const Profile &profile_b, const Trajectory &trajectory_b, const DependsOnCheckpoint *dependencies_of_b_on_a, Interpolate interpolation = Interpolate::CubicSpline)

Checks if there are any conflicts between the two trajectories.

Parameters:
  • profile_a[in] The profile of agent A

  • trajectory_a[in] The trajectory of agent A

  • dependencies_of_a_on_b[in] The dependencies that agent A has on the given trajectory of agent B

  • profile_b[in] The profile of agent B

  • trajectory_b[in] The trajectory of agent B

  • dependencies_of_b_on_a[in] The dependencies that agent B has on the given trajectory of agent A

Returns:

true if a conflict exists between the trajectories, false otherwise.

struct Conflict