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