SpecializedSkillProxy.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace armarx
6{
7 namespace skills
8 {
9 template <class AronT>
11 {
12 public:
14
15 // Provide a similar API as the skillprovider
17 executeSkill(const std::string& executorName, const AronT& params)
18 {
19 return SkillProxy::executeSkill(executorName, params.toAron());
20 }
21
23 executeSkillAsync(const std::string& executorName, const AronT& params = nullptr)
24 {
25 return SkillProxy::executeSkillAsync(executorName, params.toAron());
26 }
27
28 // Utiliy methods
29 AronT
31 {
33 if (dict)
34 {
35 return AronT::FromAron(dict);
36 }
37 return {};
38 }
39 };
40 } // namespace skills
41} // namespace armarx
TerminatedSkillStatusUpdate executeSkill(const std::string &executorName, const aron::data::DictPtr &params=nullptr) const
execute a skill and block until skill terminates
SkillExecutionID executeSkillAsync(const std::string &executorName, const aron::data::DictPtr &params=nullptr) const
execute a skill. Do not block during execution
SkillProxy()=delete
We remove the default constructor as every skill proxy requires a manager.
aron::data::DictPtr getRootProfileParameters() const
get the default parameters of the skill. TODO: Skill profiles in memory!
SkillProxy()=delete
We remove the default constructor as every skill proxy requires a manager.
TerminatedSkillStatusUpdate executeSkill(const std::string &executorName, const AronT &params)
SkillExecutionID executeSkillAsync(const std::string &executorName, const AronT &params=nullptr)
This file is part of ArmarX.
This file offers overloads of toIce() and fromIce() functions for STL container types.