BringObjectSkill.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @author Fabian Reister ( fabian dot reister at kit dot edu )
17  * @date 2021
18  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19  * GNU General Public License
20  */
21 
22 #pragma once
23 
24 // STD/STL
25 #include <string>
26 
27 // ArmarX
29 
30 // RobotAPI
33 
34 // Proxies
35 #include <RobotAPI/interface/units/HandUnitInterface.h>
36 
37 // ArmarX
41 
42 namespace armarx::skills
43 {
45  {
46  std::string graspControlSkillProvider = "GraspControlSkillProvider";
47  std::string platformControlSkillProvider = "PlatformControlSkillProvider";
48 
49  void defineProperties(const armarx::PropertyDefinitionsPtr& defs, const std::string& prefix) final
50  {
51  defs->optional(graspControlSkillProvider, prefix + "graspControlSkillProviderName");
52  defs->optional(platformControlSkillProvider, prefix + "platformControlSkillProviderName");
53  }
54 
55  virtual void onInit(armarx::Component& parent) final
56  {
57  parent.usingProxy(graspControlSkillProvider);
58  parent.usingProxy(platformControlSkillProvider);
59  }
60  };
61 
63  {
64  public:
65 
67  context(c)
68  {
69  };
70 
71  protected:
73  };
74 }
ArVizComponentPlugin.h
armarx::skills::BringObjectSkill::context
const BringObjectSkillContext & context
Definition: BringObjectSkill.h:69
armarx::skills
This file is part of ArmarX.
Definition: PeriodicUpdateWidget.cpp:11
armarx::skills::BringObjectSkillContext::platformControlSkillProvider
std::string platformControlSkillProvider
Definition: BringObjectSkill.h:47
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
SimpleSpecializedSkill.h
armarx::skills::BringObjectSkillContext::onInit
virtual void onInit(armarx::Component &parent) final
Definition: BringObjectSkill.h:55
armarx::skills::SkillContext
Definition: SkillContext.h:13
armarx::skills::BringObjectSkillContext::graspControlSkillProvider
std::string graspControlSkillProvider
Definition: BringObjectSkill.h:46
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:95
SkillContext.h
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::skills::BringObjectSkill
Definition: BringObjectSkill.h:62
armarx::skills::BringObjectSkill::BringObjectSkill
BringObjectSkill(const BringObjectSkillContext &c)
Definition: BringObjectSkill.h:66
MemoryNameSystem.h
armarx::skills::BringObjectSkillContext
Definition: BringObjectSkill.h:44
armarx::skills::BringObjectSkillContext::defineProperties
void defineProperties(const armarx::PropertyDefinitionsPtr &defs, const std::string &prefix) final
Definition: BringObjectSkill.h:49