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 
30 
32 {
33 
34  struct StackResult
35  {
36  // TODO make struct, add timestamp
37  using SafetyGuardResult = std::optional<core::Twist>;
38 
40 
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