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