Class polar_force

Inheritance Relationships

Base Type

Class Documentation

class polar_force : public cosm::apf2D::base_force

A force radiating from a fixed point in space towards the robot, that always pushes the robot away. Used to add curvature to otherwise straight trajectories.

Public Functions

explicit polar_force(const config::polar_force_config *config)
rmath::vector2d operator()(const boid &entity, const rmath::vector2d &source) const