NavigateToChargingStation.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
RobotAPI/libraries/armem/client/Reader.h
>
4
#include <
RobotAPI/libraries/skills/provider/SimpleSpecializedSkill.h
>
5
6
#include <
armarx/navigation/memory/client/graph/Reader.h
>
7
#include <armarx/navigation/skills/aron/NavigateToChargingStation.aron.generated.h>
8
9
namespace
armarx::navigation::skills
10
{
11
/**
12
* @class NavigateToChargingStation
13
* @ingroup Library-armarx_navigation_skills
14
*
15
* @brief Navigate to the charging station location and initiate charging.
16
*
17
* Subskills:
18
* - armarx::navigation::skills::NavigateToNamedLocation
19
*
20
* @todo Rename, this is more general than just navigation.
21
*/
22
class
NavigateToChargingStation
:
23
virtual
public
armarx::skills::SimpleSpecializedSkill
<
24
arondto::NavigateToChargingStationParams>
25
{
26
public
:
27
using
Params
= arondto::NavigateToChargingStationParams;
28
using
Base
=
::armarx::skills::SimpleSpecializedSkill<Params>
;
29
30
static ::armarx::skills::SkillDescription
GetSkillDescription
();
31
32
struct
Properties
33
{
34
struct
SubSkillIds
35
{
36
SubSkillIds
();
37
38
armarx::skills::SkillID
navigateToNamedLocation
;
39
};
40
41
SubSkillIds
subSkillIDs
;
42
};
43
44
NavigateToChargingStation
(
const
Properties
& properties);
45
46
private
:
47
// SpecializedSkill interface
48
// Enable each function you want to override.
49
// bool isAvailable(const SpecializedInitInput&) const override;
50
// ::armarx::skills::Skill::InitResult init(const SpecializedInitInput&) override;
51
::armarx::skills::Skill::MainResult
main
(
const
SpecializedMainInput& in)
override
;
52
// ::armarx::skills::Skill::ExitResult exit(const SpecializedExitInput&) override;
53
54
55
protected
:
56
private
:
57
Properties
properties;
58
};
59
60
}
// namespace armarx::navigation::skills
Reader.h
armarx::navigation::skills::NavigateToChargingStation::Properties::SubSkillIds::navigateToNamedLocation
armarx::skills::SkillID navigateToNamedLocation
Definition:
NavigateToChargingStation.h:38
armarx::navigation::skills::NavigateToChargingStation::Properties
Definition:
NavigateToChargingStation.h:32
armarx::navigation::skills::NavigateToChargingStation::Properties::SubSkillIds
Definition:
NavigateToChargingStation.h:34
armarx::navigation::skills::NavigateToChargingStation::GetSkillDescription
::armarx::skills::SkillDescription GetSkillDescription()
Definition:
NavigateToChargingStation.cpp:16
SimpleSpecializedSkill.h
armarx::navigation::skills::NavigateToChargingStation::Properties::subSkillIDs
SubSkillIds subSkillIDs
Definition:
NavigateToChargingStation.h:41
armarx::skills::SimpleSpecializedSkill
Definition:
SimpleSpecializedSkill.h:10
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition:
Skill.h:48
armarx::skills::SimpleSpecializedSkill< arondto::NavigateToChargingStationParams >::main
Skill::MainResult main() final
Definition:
SimpleSpecializedSkill.h:71
armarx::navigation::skills::NavigateToChargingStation
Navigate to the charging station location and initiate charging.
Definition:
NavigateToChargingStation.h:22
armarx::navigation::skills::NavigateToChargingStation::Params
arondto::NavigateToChargingStationParams Params
Definition:
NavigateToChargingStation.h:27
armarx::navigation::skills::NavigateToChargingStation::Properties::SubSkillIds::SubSkillIds
SubSkillIds()
Definition:
NavigateToChargingStation.cpp:47
armarx::skills::SkillID
Definition:
SkillID.h:17
Reader.h
armarx::navigation::skills
Definition:
constants.cpp:25
armarx::navigation::skills::NavigateToChargingStation::NavigateToChargingStation
NavigateToChargingStation(const Properties &properties)
Definition:
NavigateToChargingStation.cpp:53
armarx
navigation
skills
NavigateToChargingStation.h
Generated on Sat Oct 12 2024 09:14:15 for armarx_documentation by
1.8.17