NavigateToLocation.h
Go to the documentation of this file.
1
/*
2
* This file is part of ArmarX.
3
*
4
* ArmarX is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation.
7
*
8
* ArmarX is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* @author Fabian Reister ( fabian dot reister at kit dot edu )
17
* @date 2023
18
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19
* GNU General Public License
20
*/
21
22
#pragma once
23
24
#include <
RobotAPI/libraries/skills/provider/SimpleSpecializedSkill.h
>
25
26
#include <
armarx/navigation/client.h
>
27
#include <
armarx/navigation/client/services/MemorySubscriber.h
>
28
#include <armarx/navigation/skills/aron/NavigateToLocation.aron.generated.h>
29
30
namespace
armarx::navigation::skills
31
{
32
class
NavigateToLocation
:
33
virtual
public
armarx::skills::SimpleSpecializedSkill
<arondto::NavigateToLocationParams>
34
{
35
public
:
36
using
Params
= arondto::NavigateToLocationParams;
37
using
Base
=
::armarx::skills::SimpleSpecializedSkill<Params>
;
38
39
struct
Services
40
{
41
client::IceNavigator
&
iceNavigator
;
42
43
armem::client::MemoryNameSystem
&
memoryNameSystem
;
44
};
45
46
NavigateToLocation
(
const
Services
& srv);
47
48
private
:
49
::armarx::skills::Skill::InitResult
init
(
const
Base::SpecializedInitInput
& in)
override
;
50
51
::armarx::skills::Skill::MainResult
main
(
const
Base::SpecializedMainInput
& in)
override
;
52
53
void
onStopRequested()
override
;
54
55
56
public
:
57
static
armarx::skills::SkillDescription
DefaultSkillDescription
();
58
59
protected
:
60
private
:
61
std::optional<Services> srv_;
62
63
// will be initialized in "init()"
64
std::optional<client::MemorySubscriber> memorySubscriber;
65
std::optional<client::Navigator> navigator;
66
};
67
68
}
// namespace armarx::navigation::skills
armarx::skills::SimpleSpecializedSkill< arondto::NavigateToLocationParams >::init
Skill::InitResult init() final
Definition:
SimpleSpecializedSkill.h:62
armarx::skills::SkillDescription
Definition:
SkillDescription.h:18
armarx::navigation::client::IceNavigator
Definition:
IceNavigator.h:17
SimpleSpecializedSkill.h
armarx::skills::SimpleSpecializedSkill::SpecializedMainInput
Definition:
SimpleSpecializedSkill.h:24
MemorySubscriber.h
armarx::navigation::skills::NavigateToLocation::NavigateToLocation
NavigateToLocation(const Services &srv)
Definition:
NavigateToLocation.cpp:74
armarx::navigation::skills::NavigateToLocation::Services::iceNavigator
client::IceNavigator & iceNavigator
Definition:
NavigateToLocation.h:41
armarx::navigation::skills::NavigateToLocation::DefaultSkillDescription
static armarx::skills::SkillDescription DefaultSkillDescription()
Definition:
NavigateToLocation.cpp:52
armarx::skills::SimpleSpecializedSkill
Definition:
SimpleSpecializedSkill.h:10
armarx::navigation::skills::NavigateToLocation::Services::memoryNameSystem
armem::client::MemoryNameSystem & memoryNameSystem
Definition:
NavigateToLocation.h:43
client.h
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition:
Skill.h:48
armarx::skills::SimpleSpecializedSkill::SpecializedInitInput
Definition:
SimpleSpecializedSkill.h:18
armarx::skills::SimpleSpecializedSkill< arondto::NavigateToLocationParams >::main
Skill::MainResult main() final
Definition:
SimpleSpecializedSkill.h:71
armarx::navigation::skills::NavigateToLocation::Services
Definition:
NavigateToLocation.h:39
armarx::skills::Skill::InitResult
A result struct for skill initialization.
Definition:
Skill.h:36
armarx::armem::client::MemoryNameSystem
The memory name system (MNS) client.
Definition:
MemoryNameSystem.h:69
armarx::navigation::skills::NavigateToLocation
Definition:
NavigateToLocation.h:32
armarx::navigation::skills
Definition:
constants.cpp:25
armarx::navigation::skills::NavigateToLocation::Params
arondto::NavigateToLocationParams Params
Definition:
NavigateToLocation.h:36
armarx
navigation
skills
NavigateToLocation.h
Generated on Sat Oct 12 2024 09:14:15 for armarx_documentation by
1.8.17