Class interaction_probability

Inheritance Relationships

Base Types

  • public rer::client< interaction_probability >

  • public rmath::expression< double >

Class Documentation

class interaction_probability : public rer::client<interaction_probability>, public rmath::expression<double>

Calculates the probability of two agents interacting during flocking.

From Bagarti2018.

Public Functions

interaction_probability(const interaction_probability&) = delete
interaction_probability(const rmath::radians &theta_max, const rspatial::euclidean_dist &mean_interaction_dist)
interaction_probability(interaction_probability&&) = delete
double operator()(const capf2D::boid *self, size_t other_idx, const std::vector<ckin::odometry> &others)

Calculate the probability.

Parameters:
  • self[in] Current agent.

  • other_idx[in] Index of the OTHER agent to calculate the probability of interaction with in fov_agents.

  • others[in] The ALL other agents in the current agents FOV.

interaction_probability &operator=(const interaction_probability&) = delete
interaction_probability &operator=(interaction_probability&&) = delete