LambdaSkill.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace 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
int main(int argc, char *argv[])
Definition Admin.cpp:45
LambdaSkill(const SkillDescription &desc, const FunctionType &f)
Definition LambdaSkill.h:15
std::function< TerminatedSkillStatus()> FunctionType
Definition LambdaSkill.h:12
Skill()=delete
We completely remove the default constructor!
This file is part of ArmarX.
This file offers overloads of toIce() and fromIce() functions for STL container types.