StackResult.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 <
armarx/navigation/core/basic_types.h
>
28
#include <
armarx/navigation/global_planning/GlobalPlanner.h
>
29
#include <
armarx/navigation/local_planning/LocalPlanner.h
>
30
31
namespace
armarx::navigation::server
32
{
33
34
struct
StackResult
35
{
36
// TODO make struct, add timestamp
37
using
SafetyGuardResult
= std::optional<core::Twist>;
38
39
global_planning::GlobalPlannerResult
globalPlan
;
// Navigation
40
41
local_planning::LocalPlannerResult
localTrajectory
;
42
// traj_ctrl::global::TrajectoryControllerResult controlVelocity;
43
// SafetyGuardResult safeVelocity;
44
45
// core::TrajectoryPtr trajectory() const;
46
// core::Twist velocity() const;
47
48
/**
49
* @brief Simple check if both calls to trajectory() and velocity() can be performed
50
* without throwing an exception.
51
*
52
* Note: This might not be sufficient, e.g. when a local planner is active but no local
53
* planner has written its result
54
*
55
*/
56
// bool isValid() const;
57
};
58
}
// namespace armarx::navigation::server
armarx::navigation::server::StackResult::globalPlan
global_planning::GlobalPlannerResult globalPlan
Definition:
StackResult.h:39
armarx::navigation::local_planning::LocalPlannerResult
Definition:
LocalPlanner.h:40
armarx::navigation::server::StackResult::SafetyGuardResult
std::optional< core::Twist > SafetyGuardResult
Definition:
StackResult.h:37
basic_types.h
LocalPlanner.h
armarx::navigation::server
This file is part of ArmarX.
Definition:
EventPublishingInterface.h:6
armarx::navigation::server::StackResult::localTrajectory
local_planning::LocalPlannerResult localTrajectory
Definition:
StackResult.h:41
GlobalPlanner.h
armarx::navigation::global_planning::GlobalPlannerResult
Definition:
GlobalPlanner.h:38
armarx::navigation::server::StackResult
Definition:
StackResult.h:34
armarx
navigation
server
StackResult.h
Generated on Sat Mar 29 2025 09:17:35 for armarx_documentation by
1.8.17