17 #ifndef __ROSEE_YAMLWORKER_H 18 #define __ROSEE_YAMLWORKER_H 20 #define DEFAULT_ACTION_FOLDER "/configs/actions/" 25 #include <yaml-cpp/yaml.h> 64 const std::string actionName, std::string pathFolder ) ;
96 std::shared_ptr < ROSEE::ActionTimed >
parseYamlTimed ( std::string fileWithPath);
122 #endif // __ROSEE_YAMLWORKER_H
Virtual class, Base of all the primitive actions. It has some implemented functions that a derived cl...
std::map< std::set< std::string >, ROSEE::ActionPrimitive::Ptr > parseYamlPrimitive(std::string fileWithPath)
Parse a yaml file and return the map with all the actions present in the file. For the moment...
std::shared_ptr< ROSEE::ActionTimed > parseYamlTimed(std::string fileWithPath)
Parse a timed Action.
ROSEE::ActionGeneric::Ptr parseYamlGeneric(std::string fileWithPath)
The pure virtual class representing an Action. It has members that are in common to all derived class...
A ActionComposed, which is formed by one or more Primitives (or even other composed). It is useful for example to create an action that grasp only with bending the tips (e.g. to take a dish from above) If the ActionComposed has the boolean value independent to true, it means that include indipendent sub-actions, so, each joint is used by at maximum by ONLY ONE of the sub-action inside. In this case the jointsInvolvedCount will contain only 0 or 1 values. If the ActionComposed is not independent, each joint position is calculated as the mean of all the joint position of the contained sub-actions that uses that joint. So each mean can include different primitives, so we used the jointsInvolvedCount vector to store the number of sub action that use each joint.
std::shared_ptr< ActionGeneric > Ptr
std::shared_ptr< ActionPrimitive > Ptr
Type
Enum useful to discriminate each primitive action when, for example, we want to parse a file if you ...
std::string emitYaml(const std::map< std::set< std::string >, ActionPrimitive * >)
support functions for createYamlFile
YamlWorker()
Costructor default.
ROSEE::ActionComposed parseYamlComposed(std::string fileWithPath)
Parse a composed Action.
std::string createYamlFile(const std::map< std::set< std::string >, ActionPrimitive * > mapOfActions, const std::string actionName, std::string pathFolder)
Create/overwrite yaml file and emit info on it about each ActionPrimitive inside the given mapOfActio...