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) : Skill(desc), fun(f){};
16 
17  private:
18  MainResult main() override;
19 
20  private:
21  FunctionType fun;
22  };
23  } // namespace skills
24 } // namespace armarx
armarx::skills::TerminatedSkillStatus
TerminatedSkillStatus
Definition: SkillStatusUpdate.h:39
skills
This file is part of ArmarX.
armarx::skills::SkillDescription
Definition: SkillDescription.h:18
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:29
armarx::skills::LambdaSkill::LambdaSkill
LambdaSkill()=delete
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28