Go to the documentation of this file.
19 #ifndef __ROSEE_ACTIONMULTIPLEPINCHTIGHT_H
20 #define __ROSEE_ACTIONMULTIPLEPINCHTIGHT_H
24 #include <yaml-cpp/yaml.h>
71 std::vector < ROSEE::ActionMultiplePinchTight::StateWithDepth >
getActionStates()
const;
85 void print ()
const override;
86 void emitYaml ( YAML::Emitter& )
const override;
87 bool fillFromYaml( YAML::const_iterator yamlIt )
override;
97 {
return (std::abs(
a.second) < std::abs(b.second) );}
111 #endif // __ROSEE_ACTIONMULTIPLEPINCHTIGHT_H
bool fillFromYaml(YAML::const_iterator yamlIt) override
function to fill members of the Action with infos taken from yaml files
A base virtual class for the PinchTight and PinchLoose classes. It includes member and method that ar...
bool operator()(const StateWithDepth &a, const StateWithDepth &b) const
struct to put in order the actionStates. with "<" we put as best the position that has less sumDepth.
void emitYaml(YAML::Emitter &) const override
Function to fill the argument passed with info about the action. Pure virtual because each derived cl...
bool insertActionState(JointPos, double depthSum)
function to insert a single action in the actionStates set of possible action. If the action is not s...
std::vector< ROSEE::JointPos > getAllJointPos() const override
Return all the joint position stored. If the concrete (derived from Action) has only one joint positi...
Class to describe the action of "pinching" with more than 2 tips (with 2 tips there is the ActionPinc...
void print() const override
Overridable functions, if we want to make them more action-specific.
std::map< std::set< std::string >, ActionMultiplePinchTight > Map
std::set< StateWithDepth, depthComp > actionStates
For each multiple pinch possible, we want a set of action because we want to store (in general) more ...
JointPos getJointPos() const override
Get the position related to this action. Pure Virtual function: the derived class store this info dif...
std::pair< JointPos, double > StateWithDepth
A pair to "link" the JointPos with the depthSum info to order the StateWithDepth in the actionState s...
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::vector< ROSEE::ActionMultiplePinchTight::StateWithDepth > getActionStates() const
Specific get for the ActionMultiplePinchTight to return the state with the paired depthSum.
ActionMultiplePinchTight()
const unsigned int maxStoredActionStates
end-effector
Author(s): Luca Muratore
, Davide Torielli , Liana Bertoni
autogenerated on Sat Dec 14 2024 03:49:26