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
27#include <VirtualRobot/VirtualRobot.h>
28
30
37
39{
40
41 /**
42 * @brief Parameters for Point2Point
43 *
44 */
46 {
47 bool includeStartPose{true};
49
50 Algorithms algorithm() const override;
51 aron::data::DictPtr toAron() const override;
52
54 };
55
57 {
58 public:
60
61 Point2PointImpl(const Params& params,
62 const core::GeneralConfig& generalConfig,
63 const std::optional<navigation::algorithms::Costmap>& costmap,
65
66 void updateCostmap(const std::optional<navigation::algorithms::Costmap>& costmap);
67
68 std::optional<GlobalPlannerResult> plan(const core::Pose& start, const core::Pose& goal);
69
70 private:
71 Params params_;
72 core::GeneralConfig generalConfig_;
73 std::optional<navigation::algorithms::Costmap> costmap_;
75 };
76
77 /**
78 * @class Point2Point
79 * @ingroup Library-GlobalPlanner
80 *
81 */
82 class Point2Point : virtual public GlobalPlanner
83 {
84 public:
86
87 Point2Point(const Params& params,
89 const core::Scene& ctx);
90
91 std::optional<GlobalPlannerResult> plan(const core::Pose& goal) override;
92 std::optional<GlobalPlannerResult> plan(const core::Pose& start,
93 const core::Pose& goal) override;
94
95 protected:
97
98 private:
99 };
100} // namespace armarx::navigation::global_planning
GlobalPlanner(const core::GeneralConfig &generalConfig, const core::Scene &scene)
void updateCostmap(const std::optional< navigation::algorithms::Costmap > &costmap)
std::optional< GlobalPlannerResult > plan(const core::Pose &start, const core::Pose &goal)
Point2PointImpl(const Params &params, const core::GeneralConfig &generalConfig, const std::optional< navigation::algorithms::Costmap > &costmap, VirtualRobot::RobotPtr robot)
std::optional< GlobalPlannerResult > plan(const core::Pose &goal) override
Point2Point(const Params &params, const core::GeneralConfig &generalConfig, const core::Scene &ctx)
std::shared_ptr< class Robot > RobotPtr
Definition Bus.h:19
std::shared_ptr< Dict > DictPtr
Definition Dict.h:42
Eigen::Isometry3f Pose
Definition basic_types.h:31
This file is part of ArmarX.
Definition fwd.h:30
static Point2PointParams FromAron(const aron::data::DictPtr &dict)
aron::data::DictPtr toAron() const override