GlobalPlanner.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  * @author Christian R. G. Dreher ( c dot dreher at kit dot edu )
18  * @date 2021
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 #include <VirtualRobot/VirtualRobot.h>
26 
28 
34 
36 {
37 
39  {
41  };
42 
43 
44  /**
45  * @brief Parameters for GlobalPlanner
46  *
47  */
49  {
50  bool foo;
51 
52  virtual ~GlobalPlannerParams() = default;
53 
54  virtual Algorithms algorithm() const = 0;
55  virtual aron::data::DictPtr toAron() const = 0;
56  };
57 
58  /**
59  * @class GlobalPlanner
60  * @ingroup Library-GlobalPlanner
61  *
62  * Base class of all global planners
63  */
65  {
66  public:
68  virtual ~GlobalPlanner() = default;
69 
70  virtual std::optional<GlobalPlannerResult> plan(const core::Pose& goal) = 0;
71  virtual std::optional<GlobalPlannerResult> plan(const core::Pose& start,
72  const core::Pose& goal) = 0;
73 
74  protected:
76 
77  private:
78  };
79 
80  using GlobalPlannerPtr = std::shared_ptr<GlobalPlanner>;
81 } // namespace armarx::navigation::global_planning
armarx::navigation::core::GlobalTrajectory
Definition: Trajectory.h:68
armarx::navigation::global_planning::GlobalPlannerParams::foo
bool foo
Definition: GlobalPlanner.h:50
armarx::navigation::global_planning::GlobalPlannerParams::toAron
virtual aron::data::DictPtr toAron() const =0
armarx::navigation::core::Pose
Eigen::Isometry3f Pose
Definition: basic_types.h:31
armarx::navigation::global_planning::GlobalPlanner::GlobalPlanner
GlobalPlanner(const core::Scene &scene)
Definition: GlobalPlanner.cpp:9
armarx::navigation::global_planning::GlobalPlannerResult::trajectory
core::GlobalTrajectory trajectory
Definition: GlobalPlanner.h:40
armarx::navigation::global_planning::GlobalPlannerParams
Parameters for GlobalPlanner.
Definition: GlobalPlanner.h:48
DynamicScene.h
StaticScene.h
armarx::navigation::global_planning::GlobalPlanner::scene
const core::Scene & scene
Definition: GlobalPlanner.h:75
armarx::navigation::global_planning::GlobalPlannerPtr
std::shared_ptr< GlobalPlanner > GlobalPlannerPtr
Definition: fwd.h:32
Dict.h
armarx::navigation::global_planning::GlobalPlannerParams::algorithm
virtual Algorithms algorithm() const =0
armarx::navigation::global_planning::GlobalPlannerResult
Definition: GlobalPlanner.h:38
armarx::navigation::global_planning::GlobalPlannerParams::~GlobalPlannerParams
virtual ~GlobalPlannerParams()=default
armarx::navigation::core::Scene
Definition: types.h:71
armarx::navigation::global_planning::GlobalPlanner
Definition: GlobalPlanner.h:64
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition: Dict.h:41
armarx::navigation::global_planning::GlobalPlanner::~GlobalPlanner
virtual ~GlobalPlanner()=default
armarx::navigation::global_planning::GlobalPlanner::plan
virtual std::optional< GlobalPlannerResult > plan(const core::Pose &goal)=0
core.h
armarx::navigation::global_planning::Algorithms
Algorithms
Definition: core.h:38
Trajectory.h
types.h
armarx::navigation::global_planning
This file is part of ArmarX.
Definition: fwd.h:29