Point2Point.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 <optional>
26 
28 
33 
35 {
36 
37  /**
38  * @brief Parameters for Point2Point
39  *
40  */
42  {
43  bool includeStartPose{true};
44 
45  float velocity{400};
46 
47  Algorithms algorithm() const override;
48  aron::data::DictPtr toAron() const override;
49 
51  };
52 
53  /**
54  * @class Point2Point
55  * @ingroup Library-GlobalPlanner
56  *
57  */
58  class Point2Point : virtual public GlobalPlanner
59  {
60  public:
62 
63  Point2Point(const Params& params, const core::Scene& ctx);
64 
65  std::optional<GlobalPlannerResult> plan(const core::Pose& goal) override;
66  std::optional<GlobalPlannerResult> plan(const core::Pose& start,
67  const core::Pose& goal) override;
68 
69  protected:
70  const Params params;
71 
72  private:
73  };
74 } // namespace armarx::navigation::global_planning
armarx::navigation::global_planning::Point2PointParams::algorithm
Algorithms algorithm() const override
Definition: Point2Point.cpp:27
armarx::navigation::core::Pose
Eigen::Isometry3f Pose
Definition: basic_types.h:31
basic_types.h
armarx::navigation::global_planning::GlobalPlannerParams
Parameters for GlobalPlanner.
Definition: GlobalPlanner.h:47
armarx::navigation::global_planning::Point2Point::plan
std::optional< GlobalPlannerResult > plan(const core::Pose &goal) override
Definition: Point2Point.cpp:65
armarx::navigation::global_planning::Point2PointParams::FromAron
static Point2PointParams FromAron(const aron::data::DictPtr &dict)
Definition: Point2Point.cpp:44
armarx::navigation::global_planning::Point2PointParams::toAron
aron::data::DictPtr toAron() const override
Definition: Point2Point.cpp:33
forward_declarations.h
GlobalPlanner.h
armarx::navigation::core::Scene
Definition: types.h:60
armarx::navigation::global_planning::Point2Point
Definition: Point2Point.h:58
armarx::navigation::global_planning::Point2Point::params
const Params params
Definition: Point2Point.h:70
armarx::navigation::global_planning::GlobalPlanner
Definition: GlobalPlanner.h:63
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition: Dict.h:41
armarx::navigation::global_planning::Point2Point::Point2Point
Point2Point(const Params &params, const core::Scene &ctx)
Definition: Point2Point.cpp:59
armarx::navigation::global_planning::Point2PointParams
Parameters for Point2Point.
Definition: Point2Point.h:41
armarx::navigation::global_planning::Point2PointParams::velocity
float velocity
Definition: Point2Point.h:45
core.h
armarx::navigation::global_planning::Algorithms
Algorithms
Definition: core.h:38
armarx::navigation::global_planning::Point2PointParams::includeStartPose
bool includeStartPose
Definition: Point2Point.h:43
types.h
armarx::navigation::global_planning
This file is part of ArmarX.
Definition: fwd.h:29