src
GraspingActions
ActionPinchGeneric.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 IIT-HHCM
3
* Author: Davide Torielli
4
* email: davide.torielli@iit.it
5
*
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
* you may not use this file except in compliance with the License.
8
* You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS,
14
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
* See the License for the specific language governing permissions and
16
* limitations under the License.
17
*/
18
24
#include <
end_effector/GraspingActions/ActionPinchGeneric.h
>
25
26
ROSEE::ActionPinchGeneric::ActionPinchGeneric
(std::string name,
ActionPrimitive::Type
type) :
27
ActionPrimitive
(
name
, 3, type) { }
28
29
ROSEE::ActionPinchGeneric::ActionPinchGeneric
(std::string name,
unsigned
int
maxStoredActionStates,
ActionPrimitive::Type
type) :
30
ActionPrimitive
(
name
, maxStoredActionStates, type) { }
31
32
ROSEE::ActionPinchGeneric::ActionPinchGeneric
(
33
std::string name,
unsigned
int
nFingerInvolved,
unsigned
int
maxStoredActionStates,
ActionPrimitive::Type
type) :
34
ActionPrimitive
(
name
, nFingerInvolved, maxStoredActionStates, type) { }
35
36
std::set<std::string>
ROSEE::ActionPinchGeneric::getKeyElements
()
const
{
37
return
fingersInvolved;
38
}
39
ActionPinchGeneric.h
ROSEE::ActionPinchGeneric::ActionPinchGeneric
ActionPinchGeneric(std::string name, ActionPrimitive::Type type)
Definition:
ActionPinchGeneric.cpp:26
name
name
ROSEE::ActionPrimitive
Virtual class, Base of all the primitive actions. It has some implemented functions that a derived cl...
Definition:
ActionPrimitive.h:48
ROSEE::ActionPrimitive::Type
Type
Enum useful to discriminate each primitive action when, for example, we want to parse a file @remind ...
Definition:
ActionPrimitive.h:60
ROSEE::ActionPinchGeneric::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:
ActionPinchGeneric.cpp:36
end-effector
Author(s): Luca Muratore
, Davide Torielli
, Liana Bertoni
autogenerated on Sat Dec 14 2024 03:49:26