17 #ifndef ROSEE_ACTIONGENERIC_H 18 #define ROSEE_ACTIONGENERIC_H 21 #include <yaml-cpp/yaml.h> 35 typedef std::shared_ptr<ActionGeneric>
Ptr;
36 typedef std::shared_ptr<const ActionGeneric>
ConstPtr;
80 virtual void emitYaml ( YAML::Emitter& out )
const override;
85 virtual bool fillFromYaml ( YAML::const_iterator yamlIt )
override;
101 #endif // ROSEE_ACTIONGENERIC_H std::map< std::string, std::vector< double > > JointPos
The map to describe the position of all actuated joints. The key is the name of the string...
std::map< std::string, unsigned int > JointsInvolvedCount
The map to describe, how many times a joint is set by the action. An ActionPrimitive and an ActionCom...
The pure virtual class representing an Action. It has members that are in common to all derived class...
std::vector< ROSEE::JointPos > getAllJointPos() const override
Get the joint position related to this action, overriden from Action Necessary to not make this class...
std::shared_ptr< ActionGeneric > Ptr
std::shared_ptr< const ActionGeneric > ConstPtr
Class to handle a generic, simple action. Differently from other class, this is easily creable manual...
virtual void emitYaml(YAML::Emitter &out) const override
Function to fill the argument passed with info about the action. Pure virtual because each derived cl...
JointPos getJointPos() const override
Get the joint position related to this action, overriden from Action.
ActionGeneric()
default costructor. It is used when parsing a file with YamlWorker,
std::set< std::string > fingersInvolved
virtual bool fillFromYaml(YAML::const_iterator yamlIt) override
function to fill members of the Action with infos taken from yaml files