GuideHumanToRoom.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 
26 
31 
36 #include <armarx/navigation/skills/aron/GuideHumanToRoom.aron.generated.h>
38 
40 {
42  virtual public armarx::skills::SimpleSpecializedSkill<arondto::GuideHumanToRoomParams>
43  {
44  public:
45  using Params = arondto::GuideHumanToRoomParams;
47 
48  struct Services
49  {
52 
54 
55  // objpose::ObjectPoseClient& objectPoseClient;
56 
59 
61  };
62 
63  struct Properties
64  {
66  "distance_to_obstacle_costmap_provider"; // FIXME
67  std::string roomsProvider = "R003"; // FIXME
68  std::string robotName = "Armar6"; // FIXME
69  };
70 
71  GuideHumanToRoom(const Services& srv);
72 
73 
74  private:
76 
78 
79  void onStopRequested() override;
80 
81  core::Pose getTargetInFrontOfRoom(const std::string& roomName) const;
82 
83  public:
86  {
89  .description = "",
90  .timeout = armarx::core::time::Duration(),
91  .parametersType = Params::ToAronType()};
92  }
93 
94  protected:
95  private:
96  std::optional<Services> srv_;
97  const Properties properties;
98 
99  // will be initialized in "init()"
100  std::optional<client::MemorySubscriber> memorySubscriber;
101  std::optional<client::Navigator> navigator;
102  };
103 
104 } // namespace armarx::navigation::skills
constants.h
armarx::skills::SimpleSpecializedSkill< arondto::GuideHumanToRoomParams >::init
Skill::InitResult init() final
Definition: SimpleSpecializedSkill.h:62
armarx::armem::robot_state::VirtualRobotReader
The VirtualRobotReader class.
Definition: VirtualRobotReader.h:40
armarx::navigation::skills::GuideHumanToRoom::Services::costmapReader
memory::client::costmap::Reader & costmapReader
Definition: GuideHumanToRoom.h:57
armarx::navigation::core::Pose
Eigen::Isometry3f Pose
Definition: basic_types.h:31
armarx::skills::SkillID::skillName
std::string skillName
Definition: SkillID.h:60
armarx::skills::SkillDescription
Definition: SkillDescription.h:18
armarx::navigation::skills::GuideHumanToRoom::GuideHumanToRoom
GuideHumanToRoom(const Services &srv)
Definition: GuideHumanToRoom.cpp:25
Duration.h
Reader.h
armarx::navigation::client::IceNavigator
Definition: IceNavigator.h:17
armarx::navigation::skills::constants::skill_names::GuideHumanToRoom
const std::string GuideHumanToRoom
Definition: constants.h:35
SimpleSpecializedSkill.h
armarx::navigation::memory::client::rooms::Reader
Definition: Reader.h:35
armarx::skills::SimpleSpecializedSkill::SpecializedMainInput
Definition: SimpleSpecializedSkill.h:24
armarx::navigation::skills::GuideHumanToRoom::Services::memoryNameSystem
armem::client::MemoryNameSystem & memoryNameSystem
Definition: GuideHumanToRoom.h:51
MemorySubscriber.h
armarx::navigation::skills::GuideHumanToRoom::DefaultSkillDescription
static armarx::skills::SkillDescription DefaultSkillDescription()
Definition: GuideHumanToRoom.h:85
armarx::navigation::memory::client::costmap::Reader
Definition: Reader.h:34
ManagedIceObject.h
armarx::navigation::skills::GuideHumanToRoom::Services::roomsReader
memory::client::rooms::Reader & roomsReader
Definition: GuideHumanToRoom.h:58
Reader.h
armarx::skills::SkillDescription::skillId
SkillID skillId
Definition: SkillDescription.h:20
ObjectPoseClient.h
armarx::skills::SimpleSpecializedSkill
Definition: SimpleSpecializedSkill.h:10
armarx::navigation::skills::GuideHumanToRoom::Services::iceNavigator
client::IceNavigator & iceNavigator
Definition: GuideHumanToRoom.h:50
armarx::navigation::skills::GuideHumanToRoom::Properties::roomsProvider
std::string roomsProvider
Definition: GuideHumanToRoom.h:67
VirtualRobotReader.h
armarx::navigation::skills::GuideHumanToRoom::Services::arviz
viz::Client & arviz
Definition: GuideHumanToRoom.h:60
armarx::navigation::skills::GuideHumanToRoom::Properties::distanceToObstacleCostmapProvider
std::string distanceToObstacleCostmapProvider
Definition: GuideHumanToRoom.h:65
client.h
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition: Skill.h:48
SimpleSkill.h
armarx::skills::SimpleSpecializedSkill::SpecializedInitInput
Definition: SimpleSpecializedSkill.h:18
armarx::skills::SimpleSpecializedSkill< arondto::GuideHumanToRoomParams >::main
Skill::MainResult main() final
Definition: SimpleSpecializedSkill.h:71
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::GuideHumanToRoom::Properties
Definition: GuideHumanToRoom.h:63
armarx::navigation::skills::GuideHumanToRoom::Services::virtualRobotReader
armem::robot_state::VirtualRobotReader & virtualRobotReader
Definition: GuideHumanToRoom.h:53
armarx::viz::Client
Definition: Client.h:109
armarx::navigation::skills::GuideHumanToRoom::Properties::robotName
std::string robotName
Definition: GuideHumanToRoom.h:68
armarx::armem::Duration
armarx::core::time::Duration Duration
Definition: forward_declarations.h:14
armarx::navigation::skills::GuideHumanToRoom::Services
Definition: GuideHumanToRoom.h:48
armarx::navigation::skills::GuideHumanToRoom::Params
arondto::GuideHumanToRoomParams Params
Definition: GuideHumanToRoom.h:45
armarx::navigation::skills
Definition: constants.cpp:25
armarx::navigation::skills::GuideHumanToRoom
Definition: GuideHumanToRoom.h:41