Class temporal_penalty

Class Documentation

class temporal_penalty

Handles subjecting a robot to a penalty when doing something via a timeout in which the robot will sit still.

Public Functions

inline temporal_penalty(const controller::base_controller *const controller, const rtypes::type_uuid &id, const rtypes::timestep &penalty, const rtypes::timestep &start_time)

Initialize the penalty.

Parameters:
  • controller – The controller for the robot being subjected to the penalty.

  • id – The ID to associate with the penalty.

  • penalty – The # of timesteps for the penalty.

  • start_time – The timestep the penalty will start on.

temporal_penalty(const temporal_penalty&) = default
temporal_penalty(temporal_penalty&&) = default
inline const controller::base_controller *controller(void) const
inline const rtypes::type_uuid &id(void) const
const temporal_penalty &operator=(const temporal_penalty&) = delete
temporal_penalty &operator=(temporal_penalty&&) = delete
inline bool operator==(const temporal_penalty &other)
inline const rtypes::timestep &penalty(void) const
inline bool penalty_satisfied(const rtypes::timestep &current_time) const

If TRUE, then the robot has satisfied the block_manipulation penalty.

inline const rtypes::timestep &start_time(void) const