LambdaSkill.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace armarx
6 {
7  namespace skills
8  {
9  class LambdaSkill : public Skill
10  {
11  public:
12  using FunctionType = std::function<TerminatedSkillStatus()>;
13 
14  LambdaSkill() = delete;
15  LambdaSkill(const SkillDescription& desc, const FunctionType& f) :
16  Skill(desc), fun(f){};
17 
18  private:
19  MainResult main() override;
20 
21  private:
22  FunctionType fun;
23  };
24  } // namespace skills
25 } // namespace armarx
armarx::skills::TerminatedSkillStatus
TerminatedSkillStatus
Definition: SkillStatusUpdate.h:34
skills
This file is part of ArmarX.
armarx::skills::SkillDescription
Definition: SkillDescription.h:17
armarx::skills::LambdaSkill::FunctionType
std::function< TerminatedSkillStatus()> FunctionType
Definition: LambdaSkill.h:12
armarx::skills::LambdaSkill
Definition: LambdaSkill.h:9
armarx::skills::LambdaSkill::LambdaSkill
LambdaSkill(const SkillDescription &desc, const FunctionType &f)
Definition: LambdaSkill.h:15
Skill.h
armarx::skills::Skill
Base class for skills.
Definition: Skill.h:20
armarx::skills::LambdaSkill::LambdaSkill
LambdaSkill()=delete
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27