Class penalty_id_calculator
Defined in File penalty_id_calculator.hpp
Inheritance Relationships
Base Type
public rer::client< penalty_id_calculator >
Class Documentation
-
class penalty_id_calculator : public rer::client<penalty_id_calculator>
Calculates the ID for a ctv::temporal_penalty under some general purpose conditions. Projects built on COSM will undoubtedly have to define their own additional ID calculation functions/classes to extend the functionality present here.
Public Functions
-
penalty_id_calculator(const penalty_id_calculator&) = delete
-
inline penalty_id_calculator(void)
-
rtypes::type_uuid from_free_pickup(const rmath::vector2d &loc, const rtypes::type_uuid &acq_id, const carena::base_arena_map *map) const
Compute the ID for the penalty if the operation involves picking up a free block in the arena.
- Parameters:
loc – The robots current location.
acq_id – The ID of the thing (probably a block) that the robot THINKS it has acquired.
map – The carena::base_arena_map.
-
rtypes::type_uuid from_nest_drop(const crepr::base_block3D *block) const
Compute the ID for the penalty if the operation involves dropping a block in the crepr::nest.
- Parameters:
block – The block the robot is currently carrying.
-
const penalty_id_calculator &operator=(const penalty_id_calculator&) = delete
-
penalty_id_calculator(const penalty_id_calculator&) = delete