Function Observation::toObsType
Defined in File coverage_observation.h
Function Documentation
-
despot::OBS_TYPE Observation::toObsType(const std::vector<IMacObservation> &obsVector, const ActionOutcome &outcome)
Converts a vector of IMac observations and action success flag to a uint64_t for use in DESPOT.
- Parameters:
obsVector – A vector of IMacObservations in FOV order (can be relative or absolute)
outcome – An ActionOutcome struct capturing the robot’s action success
- Throws:
tooManyCells – Raised if > 63 cells in FOV
- Returns:
The observation as an integer