17 #ifndef MAPACTIONHANDLER_H 18 #define MAPACTIONHANDLER_H 43 typedef std::shared_ptr<MapActionHandler>
Ptr;
100 std::shared_ptr<ROSEE::ActionGeneric>
getGeneric (std::string name,
bool verbose =
true)
const;
101 std::map <std::string, std::shared_ptr<ROSEE::ActionGeneric>>
getAllGenerics ()
const;
103 std::shared_ptr<ROSEE::ActionTimed>
getTimed (std::string name)
const;
104 std::map <std::string, std::shared_ptr<ROSEE::ActionTimed>>
getAllTimeds ()
const;
167 std::map <std::string, std::shared_ptr<ROSEE::ActionGeneric>>
generics;
168 std::map <std::string, std::shared_ptr<ROSEE::ActionTimed>>
timeds;
178 #endif // MAPACTIONHANDLER_H std::map< std::string, std::set< std::string > > getPinchTightPairsMap() const
std::set< std::string > getFingertipsForPinch(std::string finger, ROSEE::ActionPrimitive::Type pinchType) const
std::map< std::string, std::set< std::string > > getPinchLoosePairsMap() const
std::map< std::string, std::set< std::string > > pinchLoosePairsMap
std::map< std::string, std::shared_ptr< ROSEE::ActionGeneric > > getAllGenerics() const
std::shared_ptr< ActionGeneric > Ptr
std::shared_ptr< ActionPrimitive > Ptr
bool parseAllPrimitives(std::string pathFolder)
std::vector< ActionPrimitiveMap > getPrimitiveMap(ROSEE::ActionPrimitive::Type type) const
getter to take all the primitives maps of one type (
bool parseAllGenerics(std::string pathFolder)
std::map< std::string, std::shared_ptr< ROSEE::ActionTimed > > timeds
std::shared_ptr< ROSEE::ActionGeneric > getGeneric(std::string name, bool verbose=true) const
Type
Enum useful to discriminate each primitive action when, for example, we want to parse a file if you ...
std::map< std::string, ActionPrimitiveMap > primitives
std::shared_ptr< MapActionHandler > Ptr
std::map< std::string, ROSEE::ActionPrimitive::Ptr > getPrimitiveSingleJointMultipleTipsMap(unsigned int nFingers) const
function to return the map that contains all the singleJointMultipleTips primitive with that moves th...
ROSEE::ActionPrimitive::Ptr getPrimitive(std::string primitiveName, std::set< std::string > key) const
std::shared_ptr< ROSEE::ActionTimed > getTimed(std::string name) const
bool insertSingleGeneric(ROSEE::ActionGeneric::Ptr generic)
This is needed by rosservicehandler which has to include a new doable action, if received the service...
std::shared_ptr< Action > Ptr
ROSEE::Action::Ptr getGrasp(unsigned int nFingers, std::string graspName="grasp")
This function try to get an action that should be a grasp.
bool parseAllActions(std::string pathFolder)
std::map< std::set< std::string >, ROSEE::ActionPrimitive::Ptr > ActionPrimitiveMap
std::map< std::string, std::shared_ptr< ROSEE::ActionTimed > > getAllTimeds() const
bool parseAllTimeds(std::string pathFolder)
std::map< std::string, std::shared_ptr< ROSEE::ActionGeneric > > generics
std::map< std::string, std::set< std::string > > pinchTightPairsMap
std::map< std::string, ActionPrimitiveMap > getAllPrimitiveMaps() const