SimplePeriodicSkill.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
PeriodicSkill.h
"
4
#include "
SimpleSkill.h
"
5
6
namespace
armarx
7
{
8
namespace
skills
9
{
10
class
SimplePeriodicSkill
:
public
SimpleSkill
11
{
12
public
:
13
using
Base
=
SimpleSkill
;
14
15
using
Base::Base
;
16
17
using
StepResult
=
PeriodicSkill::StepResult
;
18
19
SimplePeriodicSkill
(
const
SkillDescription
& skillDescription,
20
const
armarx::Frequency
&
frequency
);
21
22
protected
:
23
/// Do not use anymore
24
Skill::MainResult
main
(
const
MainInput
& in)
final
;
25
26
/// Override this method with your own step function
27
virtual
StepResult
step
(
const
MainInput
& in);
28
29
protected
:
30
const
armarx::Frequency
frequency
;
31
};
32
}
// namespace skills
33
}
// namespace armarx
skills
This file is part of ArmarX.
armarx::skills::SkillDescription
Definition:
SkillDescription.h:18
armarx::skills::SimpleSkill::MainInput
Definition:
SimpleSkill.h:22
armarx::core::time::Frequency
Represents a frequency.
Definition:
Frequency.h:17
armarx::skills::SimplePeriodicSkill::frequency
const armarx::Frequency frequency
Definition:
SimplePeriodicSkill.h:30
armarx::skills::SimplePeriodicSkill
Definition:
SimplePeriodicSkill.h:10
armarx::skills::SimplePeriodicSkill::SimplePeriodicSkill
SimplePeriodicSkill(const SkillDescription &skillDescription, const armarx::Frequency &frequency)
Definition:
SimplePeriodicSkill.cpp:5
armarx::skills::SimpleSkill::Base
Skill Base
Definition:
SimpleSkill.h:12
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
SimpleSkill.h
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::skills::SimplePeriodicSkill::step
virtual StepResult step(const MainInput &in)
Override this method with your own step function.
Definition:
SimplePeriodicSkill.cpp:48
PeriodicSkill.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:28
armarx::skills::PeriodicSkill::StepResult
Definition:
PeriodicSkill.h:36
RobotAPI
libraries
skills
provider
SimplePeriodicSkill.h
Generated on Sat Oct 12 2024 09:14:11 for armarx_documentation by
1.8.17