SimpleSkill.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
RobotAPI/libraries/skills/core/Skill.h
>
4
5
namespace
armarx
6
{
7
namespace
skills
8
{
9
class
SimpleSkill
:
public
Skill
10
{
11
public
:
12
using
Base
=
Skill
;
13
14
using
Base::Base;
15
16
struct
InitInput
17
{
18
std::string
executorName
;
19
aron::data::DictPtr
parameters
;
20
};
21
22
struct
MainInput
23
{
24
std::string
executorName
;
25
aron::data::DictPtr
parameters
;
26
CallbackT
callback
;
27
};
28
29
struct
ExitInput
30
{
31
std::string
executorName
;
32
aron::data::DictPtr
parameters
;
33
};
34
35
36
protected
:
37
// legacy methods
38
virtual
InitResult
init
(
const
InitInput
& in);
39
virtual
MainResult
main
(
const
MainInput
& in);
40
virtual
ExitResult
exit
(
const
ExitInput
& in);
41
42
InitResult
init
() final;
43
MainResult
main
() final;
44
ExitResult
exit
() final;
45
46
private:
47
};
48
}
// namespace skills
49
}
// namespace armarx
armarx::skills::SimpleSkill::ExitInput::executorName
std::string executorName
Definition:
SimpleSkill.h:31
skills
This file is part of ArmarX.
armarx::skills::SimpleSkill::ExitInput::parameters
aron::data::DictPtr parameters
Definition:
SimpleSkill.h:32
armarx::skills::SimpleSkill::MainInput::executorName
std::string executorName
Definition:
SimpleSkill.h:24
armarx::skills::SimpleSkill::MainInput::parameters
aron::data::DictPtr parameters
Definition:
SimpleSkill.h:25
armarx::skills::Skill::Skill
Skill()=delete
We completely remove the default constructor! A skill without a desciption cannot exist.
armarx::skills::SimpleSkill::MainInput
Definition:
SimpleSkill.h:22
armarx::skills::Skill::CallbackT
std::function< void(const SkillStatus s, const armarx::aron::data::DictPtr &)> CallbackT
Definition:
Skill.h:33
armarx::skills::SimpleSkill::MainInput::callback
CallbackT callback
Definition:
SimpleSkill.h:26
armarx::skills::SimpleSkill::exit
ExitResult exit() final
Override this method with the actual implementation.
Definition:
SimpleSkill.cpp:25
armarx::skills::SimpleSkill::InitInput::executorName
std::string executorName
Definition:
SimpleSkill.h:18
armarx::skills::SimpleSkill::ExitInput
Definition:
SimpleSkill.h:29
Skill.h
armarx::skills::SimpleSkill::InitInput::parameters
aron::data::DictPtr parameters
Definition:
SimpleSkill.h:19
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition:
Skill.h:48
armarx::skills::SimpleSkill
Definition:
SimpleSkill.h:9
armarx::skills::Skill::ExitResult
A result struct for skill exit function.
Definition:
Skill.h:55
armarx::skills::SimpleSkill::main
MainResult main() final
Override this method with the actual implementation. The callback is for status updates to the callin...
Definition:
SimpleSkill.cpp:15
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition:
Dict.h:41
armarx::skills::SimpleSkill::init
InitResult init() final
Override this method with the actual implementation.
Definition:
SimpleSkill.cpp:6
armarx::skills::Skill::InitResult
A result struct for skill initialization.
Definition:
Skill.h:36
armarx::skills::Skill
Base class for skills.
Definition:
Skill.h:29
armarx::skills::SimpleSkill::InitInput
Definition:
SimpleSkill.h:16
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:28
RobotAPI
libraries
skills
provider
SimpleSkill.h
Generated on Sat Oct 12 2024 09:14:12 for armarx_documentation by
1.8.17