ActionSingleJointMultipleTips.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020 <copyright holder> <email>
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef ACTIONSINGLEJOINTMULTIPLETIPS_H
18 #define ACTIONSINGLEJOINTMULTIPLETIPS_H
19 
21 #include <yaml-cpp/yaml.h>
22 #include <iostream>
23 
24 namespace ROSEE {
25 
32 
33 public:
34 
35  typedef std::map < std::string, ActionSingleJointMultipleTips > Map;
36 
38 
45  ActionSingleJointMultipleTips(std::string actionName, unsigned int nFingers);
58  ActionSingleJointMultipleTips (std::string actionName, std::vector<std::string> fingers, std::string jointName, JointPos jpFurther, JointPos jpNearer);
59 
65  std::vector < JointPos > getAllJointPos() const override;
66 
71  JointPos getJointPos () const override;
72 
77  std::set < std::string> getKeyElements () const override;
78 
80  JointPos getJointPosNearer () const;
81  std::string getJointName() const;
82 
83  void print () const override;
84  void emitYaml ( YAML::Emitter& out ) const override;
85  bool fillFromYaml( YAML::const_iterator yamlIt ) override;
86 
87 private:
88 
91  std::string jointInvolved;
92 };
93 }
94 
95 #endif // ACTIONSINGLEJOINTMULTIPLETIPS_H
ROSEE::ActionSingleJointMultipleTips::getJointPosNearer
JointPos getJointPosNearer() const
Definition: ActionSingleJointMultipleTips.cpp:59
ROSEE::ActionSingleJointMultipleTips::print
void print() const override
Overridable functions, if we want to make them more action-specific.
Definition: ActionSingleJointMultipleTips.cpp:73
ROSEE::ActionSingleJointMultipleTips::getJointPosFurther
JointPos getJointPosFurther() const
Definition: ActionSingleJointMultipleTips.cpp:55
ROSEE
Definition: EEInterface.h:30
ActionPrimitive.h
ROSEE::ActionSingleJointMultipleTips::jointPosFurther
JointPos jointPosFurther
Definition: ActionSingleJointMultipleTips.h:89
ROSEE::ActionSingleJointMultipleTips::fillFromYaml
bool fillFromYaml(YAML::const_iterator yamlIt) override
function to fill members of the Action with infos taken from yaml files
Definition: ActionSingleJointMultipleTips.cpp:128
ROSEE::ActionSingleJointMultipleTips::ActionSingleJointMultipleTips
ActionSingleJointMultipleTips()
Definition: ActionSingleJointMultipleTips.cpp:19
ROSEE::ActionSingleJointMultipleTips
Primitive which indicate a motion of n fingers moving ONLY ONE joint. For example,...
Definition: ActionSingleJointMultipleTips.h:31
ROSEE::ActionSingleJointMultipleTips::Map
std::map< std::string, ActionSingleJointMultipleTips > Map
Definition: ActionSingleJointMultipleTips.h:35
ROSEE::ActionSingleJointMultipleTips::getKeyElements
std::set< std::string > getKeyElements() const override
Necessary method to know the key used by the maps which store all the Actions of one type....
Definition: ActionSingleJointMultipleTips.cpp:67
ROSEE::ActionSingleJointMultipleTips::getAllJointPos
std::vector< JointPos > getAllJointPos() const override
Overriden get from the pure virtual function of the base class Action The signature must be equal,...
Definition: ActionSingleJointMultipleTips.cpp:43
ROSEE::ActionPrimitive
Virtual class, Base of all the primitive actions. It has some implemented functions that a derived cl...
Definition: ActionPrimitive.h:48
ROSEE::ActionSingleJointMultipleTips::emitYaml
void emitYaml(YAML::Emitter &out) const override
Function to fill the argument passed with info about the action. Pure virtual because each derived cl...
Definition: ActionSingleJointMultipleTips.cpp:99
ROSEE::ActionSingleJointMultipleTips::jointInvolved
std::string jointInvolved
Definition: ActionSingleJointMultipleTips.h:91
ROSEE::ActionSingleJointMultipleTips::getJointName
std::string getJointName() const
Definition: ActionSingleJointMultipleTips.cpp:63
ROSEE::JointPos
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,...
Definition: Action.h:40
ROSEE::ActionSingleJointMultipleTips::jointPosNearer
JointPos jointPosNearer
Definition: ActionSingleJointMultipleTips.h:90
ROSEE::ActionSingleJointMultipleTips::getJointPos
JointPos getJointPos() const override
Overriden get from the pure virtual function of the base class Action.
Definition: ActionSingleJointMultipleTips.cpp:51


end-effector
Author(s): Luca Muratore , Davide Torielli , Liana Bertoni
autogenerated on Sat Dec 14 2024 03:49:26