SpecializedSkillProxy.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace 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
armarx::skills::SkillProxy::getRootProfileParameters
aron::data::DictPtr getRootProfileParameters() const
get the default parameters of the skill. TODO: Skill profiles in memory!
Definition: SkillProxy.cpp:123
armarx::skills::SkillProxy::executeSkill
TerminatedSkillStatusUpdate executeSkill(const std::string &executorName, const aron::data::DictPtr &params=nullptr) const
execute a skill and block until skill terminates
Definition: SkillProxy.cpp:51
armarx::skills::SkillExecutionID
Definition: SkillExecutionID.h:19
skills
This file is part of ArmarX.
armarx::skills::SpecializedSkillProxy::executeSkillAsync
SkillExecutionID executeSkillAsync(const std::string &executorName, const AronT &params=nullptr)
Definition: SpecializedSkillProxy.h:23
armarx::skills::SpecializedSkillProxy::getRootProfileParameters
AronT getRootProfileParameters()
Definition: SpecializedSkillProxy.h:30
armarx::skills::SkillProxy
Definition: SkillProxy.h:11
armarx::skills::SpecializedSkillProxy
Definition: SpecializedSkillProxy.h:10
armarx::skills::SkillProxy::SkillProxy
SkillProxy()=delete
We remove the default constructor as every skill proxy requires a manager.
SkillProxy.h
armarx::skills::TerminatedSkillStatusUpdate
Definition: SkillStatusUpdate.h:79
armarx::skills::SkillProxy::executeSkillAsync
SkillExecutionID executeSkillAsync(const std::string &executorName, const aron::data::DictPtr &params=nullptr) const
execute a skill. Do not block during execution
Definition: SkillProxy.cpp:65
armarx::skills::SpecializedSkillProxy::executeSkill
TerminatedSkillStatusUpdate executeSkill(const std::string &executorName, const AronT &params)
Definition: SpecializedSkillProxy.h:17
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28