31 #ifndef _CONTROLPOLICY_H_ 32 #define _CONTROLPOLICY_H_ 34 #include <Rcs_MatNd.h> 91 virtual void computeAction(MatNd* action,
const MatNd* observation) = 0;
97 template<
class Policy>
115 return new Policy(dataFile);
static std::vector< std::string > getTypeNames()
List available policy names.
static void registerType(const char *name, ControlPolicyCreateFunction creator)
ControlPolicyRegistration(const char *name)
virtual void computeAction(MatNd *action, const MatNd *observation)=0
ControlPolicy *(* ControlPolicyCreateFunction)(const char *)
Policy factory function. Should read a policy from a file.
static ControlPolicy * create(const char *dataFile)
static ControlPolicy * create(const char *name, const char *dataFile)