Go to the documentation of this file.
19 #ifndef __ROSEE_ACTIONPINCHTIGHT_H
20 #define __ROSEE_ACTIONPINCHTIGHT_H
24 #include <yaml-cpp/yaml.h>
65 std::vector < ROSEE::ActionPinchTight::StateWithContact >
getActionStates()
const;
81 void print ()
const override;
82 void emitYaml ( YAML::Emitter& )
const override;
83 bool fillFromYaml( YAML::const_iterator yamlIt )
override;
101 {
return (std::abs(
a.second.depth) > std::abs(b.second.depth) );}
115 #endif // __ROSEE_ACTIONPINCHTIGHT_H
std::vector< ROSEE::JointPos > getAllJointPos() const override
Return all the joint position stored. If the concrete (derived from Action) has only one joint positi...
struct to put in order the actionStates. The first elements are the ones with greater depth @FIX,...
void emitYaml(YAML::Emitter &) const override
Function to fill the argument passed with info about the action. Pure virtual because each derived cl...
A base virtual class for the PinchTight and PinchLoose classes. It includes member and method that ar...
The action of pinch with two tips. The two tips must collide for some hand configuration to mark this...
std::vector< ROSEE::ActionPinchTight::StateWithContact > getActionStates() const
Specific get for the ActionPinchTight to return the state with contact info.
std::map< std::pair< std::string, std::string >, ActionPinchTight > Map
bool fillFromYaml(YAML::const_iterator yamlIt) override
function to fill members of the Action with infos taken from yaml files
JointPos getJointPos() const override
Get the position related to this action. Pure Virtual function: the derived class store this info dif...
std::set< StateWithContact, depthComp > actionStates
For each pair, we want a set of action because we want to store (in general) more possible way to do ...
bool emitYamlForContact(collision_detection::Contact, YAML::Emitter &) const
void print() const override
bool operator()(const StateWithContact &a, const StateWithContact &b) const
std::pair< JointPos, collision_detection::Contact > StateWithContact
A pair to "link" the JointPos with infos about the collision among the two tips.
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,...
bool insertActionState(JointPos, collision_detection::Contact)
function to insert a single action in the actionStates set of possible action. If the action is not s...
const unsigned int maxStoredActionStates
end-effector
Author(s): Luca Muratore
, Davide Torielli , Liana Bertoni
autogenerated on Sat Dec 14 2024 03:49:26