ROSEndEffector
ROS End-Effector package: provides a ROS-based set of standard interfaces to command robotics end-effectors in an agnostic fashion.
|
#include <YamlWorker.h>
Public Member Functions | |
YamlWorker () | |
Costructor default. More... | |
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 mapOfActions . More... | |
std::string | createYamlFile (const Action *action, std::string pathFolder) |
Create/overwrite yaml file and emit info on it about the given ActionComposed action . More... | |
std::string | createYamlFile (const ActionGeneric::Ptr, std::string pathFolder) |
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. More... | |
std::map< std::set< std::string >, ROSEE::ActionPrimitive::Ptr > | parseYamlPrimitive (std::string fileWithPath, ROSEE::ActionPrimitive::Type) |
ROSEE::ActionComposed | parseYamlComposed (std::string fileWithPath) |
Parse a composed Action. More... | |
std::shared_ptr< ROSEE::ActionTimed > | parseYamlTimed (std::string fileWithPath) |
Parse a timed Action. More... | |
ROSEE::ActionGeneric::Ptr | parseYamlGeneric (std::string fileWithPath) |
Private Member Functions | |
std::string | emitYaml (const std::map< std::set< std::string >, ActionPrimitive * >) |
support functions for createYamlFile More... | |
std::string | emitYaml (const Action *action) |
support functions for createYamlFile More... | |
std::string | emitYaml (const ActionGeneric::Ptr action) |
Definition at line 47 of file YamlWorker.h.
ROSEE::YamlWorker::YamlWorker | ( | ) |
std::string ROSEE::YamlWorker::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 mapOfActions
.
mapOfActions | container of actions which infos will be emitted on file |
actionName | the name of the action inside the map (that will have all same name) |
Definition at line 39 of file YamlWorker.cpp.
std::string ROSEE::YamlWorker::createYamlFile | ( | const Action * | action, |
std::string | pathFolder | ||
) |
Create/overwrite yaml file and emit info on it about the given ActionComposed action
.
action | [in] pointer to ActionComposed |
pathFolder | folder where to store the file. It will be created if does not exist |
Definition at line 21 of file YamlWorker.cpp.
std::string ROSEE::YamlWorker::createYamlFile | ( | const ActionGeneric::Ptr | action, |
std::string | pathFolder | ||
) |
Definition at line 30 of file YamlWorker.cpp.
|
private |
support functions for createYamlFile
mapOfActions | the map where take info from |
Definition at line 52 of file YamlWorker.cpp.
|
private |
support functions for createYamlFile
action | the action which infos must be emitted |
Definition at line 66 of file YamlWorker.cpp.
|
private |
Definition at line 75 of file YamlWorker.cpp.
ROSEE::ActionComposed ROSEE::YamlWorker::parseYamlComposed | ( | std::string | fileWithPath | ) |
Parse a composed Action.
fileWithPath | the path of the file to be parsed |
Definition at line 218 of file YamlWorker.cpp.
ROSEE::ActionGeneric::Ptr ROSEE::YamlWorker::parseYamlGeneric | ( | std::string | fileWithPath | ) |
Definition at line 238 of file YamlWorker.cpp.
std::map< std::set< std::string >, ROSEE::ActionPrimitive::Ptr > ROSEE::YamlWorker::parseYamlPrimitive | ( | std::string | fileWithPath | ) |
Parse a yaml file and return the map with all the actions present in the file.
For the moment, a actionType
argument must be passed to create the right Action object
fileWithPath | the path of the file to be parsed |
Definition at line 144 of file YamlWorker.cpp.
std::map< std::set< std::string >, ROSEE::ActionPrimitive::Ptr > ROSEE::YamlWorker::parseYamlPrimitive | ( | std::string | fileWithPath, |
ROSEE::ActionPrimitive::Type | actionType | ||
) |
Definition at line 84 of file YamlWorker.cpp.
std::shared_ptr< ROSEE::ActionTimed > ROSEE::YamlWorker::parseYamlTimed | ( | std::string | fileWithPath | ) |
Parse a timed Action.
fileWithPath | the path of the file to be parsed |
Definition at line 300 of file YamlWorker.cpp.