LocalPlanner.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 <memory>
26
27
#include <VirtualRobot/VirtualRobot.h>
28
29
#include <
RobotAPI/components/ArViz/Client/ScopedClient.h
>
30
#include <
RobotAPI/libraries/aron/core/data/variant/container/Dict.h
>
31
32
#include <
armarx/navigation/core/DynamicScene.h
>
33
#include <
armarx/navigation/core/StaticScene.h
>
34
#include <
armarx/navigation/core/Trajectory.h
>
35
#include <
armarx/navigation/core/types.h
>
36
#include <
armarx/navigation/local_planning/core.h
>
37
38
namespace
armarx::navigation::local_planning
39
{
40
struct
LocalPlannerResult
41
{
42
core::LocalTrajectory
trajectory
;
43
};
44
45
struct
LocalPlannerParams
46
{
47
virtual
~LocalPlannerParams
() =
default
;
48
49
virtual
Algorithms
algorithm
()
const
= 0;
50
virtual
aron::data::DictPtr
toAron
()
const
= 0;
51
};
52
53
class
LocalPlanner
54
{
55
public
:
56
LocalPlanner
(
const
core::Scene
& context);
57
virtual
~LocalPlanner
() =
default
;
58
59
virtual
std::optional<LocalPlannerResult>
plan
(
const
core::GlobalTrajectory
& goal) = 0;
60
61
void
setVisualization
(
viz::Client
& vis);
62
63
protected
:
64
std::optional<viz::ScopedClient>
arviz
;
65
66
private
:
67
const
core::Scene
& context;
68
};
69
70
using
LocalPlannerPtr
= std::shared_ptr<LocalPlanner>;
71
72
}
// namespace armarx::navigation::local_planning
armarx::navigation::core::GlobalTrajectory
Definition:
Trajectory.h:68
armarx::navigation::local_planning::LocalPlanner::LocalPlanner
LocalPlanner(const core::Scene &context)
Definition:
LocalPlanner.cpp:5
armarx::navigation::local_planning::LocalPlanner::arviz
std::optional< viz::ScopedClient > arviz
Definition:
LocalPlanner.h:64
armarx::navigation::local_planning::LocalPlannerResult
Definition:
LocalPlanner.h:40
ScopedClient.h
DynamicScene.h
StaticScene.h
armarx::navigation::local_planning::LocalPlannerParams::toAron
virtual aron::data::DictPtr toAron() const =0
armarx::navigation::local_planning::LocalPlannerParams::algorithm
virtual Algorithms algorithm() const =0
armarx::navigation::local_planning
This file is part of ArmarX.
Definition:
fwd.h:35
armarx::navigation::local_planning::LocalPlannerPtr
std::shared_ptr< LocalPlanner > LocalPlannerPtr
Definition:
fwd.h:38
Dict.h
armarx::navigation::local_planning::LocalPlannerParams::~LocalPlannerParams
virtual ~LocalPlannerParams()=default
armarx::navigation::local_planning::LocalPlanner::~LocalPlanner
virtual ~LocalPlanner()=default
armarx::navigation::local_planning::LocalPlannerParams
Definition:
LocalPlanner.h:45
armarx::navigation::core::LocalTrajectory
Definition:
Trajectory.h:167
core.h
armarx::navigation::core::Scene
Definition:
types.h:71
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition:
Dict.h:41
armarx::navigation::local_planning::LocalPlanner::setVisualization
void setVisualization(viz::Client &vis)
Definition:
LocalPlanner.cpp:10
armarx::navigation::local_planning::LocalPlanner
Definition:
LocalPlanner.h:53
armarx::navigation::local_planning::Algorithms
Algorithms
Definition:
core.h:30
Trajectory.h
armarx::viz::Client
Definition:
Client.h:109
armarx::navigation::local_planning::LocalPlannerResult::trajectory
core::LocalTrajectory trajectory
Definition:
LocalPlanner.h:42
types.h
armarx::navigation::local_planning::LocalPlanner::plan
virtual std::optional< LocalPlannerResult > plan(const core::GlobalTrajectory &goal)=0
armarx
navigation
local_planning
LocalPlanner.h
Generated on Sat Oct 12 2024 09:14:15 for armarx_documentation by
1.8.17