Class interference_locs2D_metrics_collector

Inheritance Relationships

Base Type

  • public rdmetrics::grid2D_metrics_collector

Class Documentation

class interference_locs2D_metrics_collector : public rdmetrics::grid2D_metrics_collector

Collector for interference_metrics as a 2D grid of where robots most frequently encounter other robots.

Metrics CAN be collected concurrently if the calling context guarantees that no two robots will have the same discrete location. Otherwise, serial collection is required.

Public Functions

interference_locs2D_metrics_collector(std::unique_ptr<rmetrics::base_sink> sink, const rmath::vector2z &dims)
Parameters:
  • sink – The metrics sink to use.

  • dims – Dimensions of arena.

void collect(const rmetrics::base_metrics &metrics) override