Class block_transporter_metrics

Inheritance Relationships

Base Types

  • public rmetrics::base_metrics

  • public rmetrics::base_metrics

Class Documentation

class block_transporter_metrics : public virtual rmetrics::base_metrics, public virtual rmetrics::base_metrics

Defines the metrics to be collected from robots as they are transporting blocks around the arena. This cannot be part of block_transporter, because metrics cannot be templated and also used in a general way with metrics collectors.

Metrics should be collected every timestep.

Public Functions

block_transporter_metrics(void) = default
block_transporter_metrics(void) = default
virtual bool is_phototaxiing_to_goal(bool include_ca) const = 0

If True, then the robot is moving towards its goal with its block via phototaxis.

Parameters:

include_ca – If TRUE, then photoaxiing towards a goal is defined to include collision avoidance manuvers. If FALSE, then phototaxiing towards a goal only occurs when a robot is not also avoiding collision. That is, are collision and avoidance considered separate states, or not?

virtual bool is_phototaxiing_to_goal(bool include_ca) const = 0

If True, then the robot is moving towards its goal with its block via phototaxis.

Parameters:

include_ca – If TRUE, then photoaxiing towards a goal is defined to include collision avoidance manuvers. If FALSE, then phototaxiing towards a goal only occurs when a robot is not also avoiding collision. That is, are collision and avoidance considered separate states, or not?