aron_conversions.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  * @date 2021
18  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19  * GNU General Public License
20  */
21 
22 #pragma once
23 
25 #include <armarx/navigation/core/aron/Events.aron.generated.h>
26 #include <armarx/navigation/core/aron/PIDParams.aron.generated.h>
27 #include <armarx/navigation/core/aron/Trajectory.aron.generated.h>
28 #include <armarx/navigation/core/aron/Twist.aron.generated.h>
29 #include <armarx/navigation/core/aron/TwistLimits.aron.generated.h>
31 
33 {
34  // TODO fix ADL and remove this function
35  template <class DtoT, class BoT>
36  DtoT
37  toAron(const BoT& bo)
38  {
39  DtoT dto;
40  toAron(dto, bo);
41  return dto;
42  }
43 
44  void toAron(arondto::GlobalTrajectoryPoint& dto, const GlobalTrajectoryPoint& bo);
45  void fromAron(const arondto::GlobalTrajectoryPoint& dto, GlobalTrajectoryPoint& bo);
46 
47  void toAron(arondto::GlobalTrajectory& dto, const GlobalTrajectory& bo);
48  void fromAron(const arondto::GlobalTrajectory& dto, GlobalTrajectory& bo);
49 
50  void toAron(arondto::LocalTrajectoryPoint& dto, const LocalTrajectoryPoint& bo);
51  void fromAron(const arondto::LocalTrajectoryPoint& dto, LocalTrajectoryPoint& bo);
52 
53  void toAron(arondto::LocalTrajectory& dto, const LocalTrajectory& bo);
54  void fromAron(const arondto::LocalTrajectory& dto, LocalTrajectory& bo);
55 
56  void toAron(arondto::Twist& dto, const Twist& bo);
57  void fromAron(const arondto::Twist& dto, Twist& bo);
58 
59  void toAron(armarx::navigation::core::arondto::PIDParams& dto,
61  void fromAron(const armarx::navigation::core::arondto::PIDParams& dto,
63 
64  void toAron(armarx::navigation::core::arondto::TwistLimits& dto,
66  void fromAron(const armarx::navigation::core::arondto::TwistLimits& dto,
68 
69  // Events
70  void toAron(armarx::navigation::core::arondto::GoalReachedEvent& dto,
72 
73  void fromAron(const armarx::navigation::core::arondto::GoalReachedEvent& dto,
75 
76  void toAron(armarx::navigation::core::arondto::MovementStartedEvent& dto,
78 
79  void fromAron(const armarx::navigation::core::arondto::GlobalPlanningFailedEvent& dto,
81 
82  void toAron(armarx::navigation::core::arondto::GlobalPlanningFailedEvent& dto,
84 
85  void fromAron(const armarx::navigation::core::arondto::LocalPlanningFailedEvent& dto,
87 
88  void toAron(armarx::navigation::core::arondto::LocalPlanningFailedEvent& dto,
90 
91  void fromAron(const armarx::navigation::core::arondto::MovementStartedEvent& dto,
93 
94  void toAron(armarx::navigation::core::arondto::WaypointReachedEvent& dto,
96 
97  void fromAron(const armarx::navigation::core::arondto::WaypointReachedEvent& dto,
99 
100  void toAron(armarx::navigation::core::arondto::InternalErrorEvent& dto,
102 
103  void fromAron(const armarx::navigation::core::arondto::InternalErrorEvent& dto,
105 
106  void toAron(armarx::navigation::core::arondto::UserAbortTriggeredEvent& dto,
108 
109  void fromAron(const armarx::navigation::core::arondto::UserAbortTriggeredEvent& dto,
111 
112  void toAron(armarx::navigation::core::arondto::SafetyThrottlingTriggeredEvent& dto,
114 
115  void fromAron(const armarx::navigation::core::arondto::SafetyThrottlingTriggeredEvent& dto,
117 
118  void toAron(armarx::navigation::core::arondto::SafetyStopTriggeredEvent& dto,
120 
121  void fromAron(const armarx::navigation::core::arondto::SafetyStopTriggeredEvent& dto,
123 
124 
125 } // namespace armarx::navigation::core
armarx::navigation::core::PIDParams
Definition: types.h:84
armarx::navigation::core::fromAron
void fromAron(const arondto::GlobalTrajectoryPoint &dto, GlobalTrajectoryPoint &bo)
Definition: aron_conversions.cpp:25
armarx::navigation::core::InternalErrorEvent
Event describing the occurance of an internal unhandled error.
Definition: events.h:101
armarx::navigation::core::SafetyThrottlingTriggeredEvent
Event desciribing that a significant safety throttling factor was reached.
Definition: events.h:68
armarx::navigation::core
This file is part of ArmarX.
Definition: aron_conversions.cpp:13
armarx::navigation::core::toAron
void toAron(arondto::GlobalTrajectoryPoint &dto, const GlobalTrajectoryPoint &bo)
Definition: aron_conversions.cpp:18
events.h
armarx::navigation::core::SafetyStopTriggeredEvent
Event describing that for security reasons, the robot was stopped completely.
Definition: events.h:84
armarx::navigation::core::UserAbortTriggeredEvent
Event describing that the user aborted the current execution.
Definition: events.h:93
armarx::navigation::core::TwistLimits
Definition: types.h:91
armarx::navigation::core::GlobalPlanningFailedEvent
Definition: events.h:31
armarx::navigation::core::GoalReachedEvent
Event describing that the targeted goal was successfully reached.
Definition: events.h:49
armarx::navigation::core::WaypointReachedEvent
Event describing that a user-defined waypoint was successfully reached.
Definition: events.h:57
Trajectory.h
armarx::navigation::core::LocalPlanningFailedEvent
Definition: events.h:36
armarx::aron::bo
const std::optional< BoT > & bo
Definition: aron_conversions.h:168
armarx::navigation::core::MovementStartedEvent
Definition: events.h:41