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 
25 
28 #include <armarx/navigation/skills/aron/NavigateToLocation.aron.generated.h>
29 
31 {
33  virtual public armarx::skills::SimpleSpecializedSkill<arondto::NavigateToLocationParams>
34  {
35  public:
36  using Params = arondto::NavigateToLocationParams;
38 
39  struct Services
40  {
42 
44  };
45 
46  NavigateToLocation(const Services& srv);
47 
48  private:
50 
52 
53  void onStopRequested() override;
54 
55 
56  public:
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