Class tracker

Nested Relationships

Nested Types

Class Documentation

class tracker

Tracker for:

  • History of applied 2D APF forces

  • Currently active path(s) the robot is following

Public Types

using map_type = std::map<std::string, map_value_type>

Public Functions

tracker(const tracker&) = delete
tracker(void) = default
bool force_add(const std::string &name, const rutils::color &color, const rmath::vector2d &force)

Add the specified force vector to the accumulated vector of forces of the specified category/name.

inline const map_type &forces(void) const
const tracker &operator=(const tracker&) = delete
inline boost::optional<cnav::trajectory> path(void) const
bool path_add(const cnav::trajectory &path)

Overwriting add of the the robot’s currently active path.

void reset(void)
struct map_value_type

Public Functions

inline map_value_type operator+=(const map_value_type &rhs)

Public Members

rutils::color color = {}
rmath::vector2d force = {}