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 
26 
27 // #include <RobotAPI/libraries/armem_objects/aron/ObjectClass.aron.generated.h>
28 // #include <RobotAPI/libraries/armem_objects/aron/ObjectInstance.aron.generated.h>
29 // #include <RobotAPI/libraries/ArmarXObjects/aron/ObjectPose.aron.generated.h>
30 
31 #include <RobotAPI/libraries/armem_robot_state/aron/Robot.aron.generated.h>
32 #include <RobotAPI/libraries/armem_robot_state/aron/RobotDescription.aron.generated.h>
33 #include <RobotAPI/libraries/armem_robot_state/aron/RobotState.aron.generated.h>
34 
35 namespace armarx::armem
36 {
37  namespace robot_state::localization
38  {
39  struct Transform;
40  struct TransformHeader;
41 
42  } // namespace robot_state::localization
43 
44  namespace robot_state
45  {
46  struct JointState;
47 
48  } // namespace robot_state
49 
50  namespace prop::arondto
51  {
52  struct Platform;
53  struct ForceTorque;
54  } // namespace prop::arondto
55 
56  namespace exteroception::arondto
57  {
58  struct ToF;
59  }
60 
61  namespace arondto
62  {
63  struct Transform;
64  struct TransformHeader;
65 
66  struct JointState;
67 
68  } // namespace arondto
69 
70 } // namespace armarx::armem
71 
73 {
74 
75  void fromAron(const arondto::Transform& dto, Transform& bo);
76  void toAron(arondto::Transform& dto, const Transform& bo);
77 
78  void fromAron(const arondto::TransformHeader& dto, TransformHeader& bo);
79  void toAron(arondto::TransformHeader& dto, const TransformHeader& bo);
80 } // namespace armarx::armem::robot_state::localization
81 
83 {
84 
85  void fromAron(const armarx::armem::prop::arondto::Platform& dto, PlatformState& bo);
86  void toAron(armarx::armem::prop::arondto::Platform& dto, const PlatformState& bo);
87 
88 } // namespace armarx::armem::robot_state
89 
91 {
92 
93  void fromAron(const armarx::armem::prop::arondto::ForceTorque& dto, ForceTorque& bo);
94  void toAron(armarx::armem::prop::arondto::ForceTorque& dto, const ForceTorque& bo);
95 
96 } // namespace armarx::armem::robot_state::proprioception
97 
99 {
100  void fromAron(const armarx::armem::exteroception::arondto::ToF& dto, ToF& bo);
101  void toAron(armarx::armem::exteroception::arondto::ToF& dto, const ToF& bo);
102 
103 
104 } // namespace armarx::armem::robot_state::exteroception
105 
107 {
108  void fromAron(const arondto::RobotDescription& dto, RobotDescription& bo);
109  void toAron(arondto::RobotDescription& dto, const RobotDescription& bo);
110 
111 } // namespace armarx::armem::robot_state::description
112 
114 {
115  // TODO move the following
116  void fromAron(const long& dto, IceUtil::Time& time);
117  void toAron(long& dto, const IceUtil::Time& time);
118  // end TODO
119 
120  void fromAron(const arondto::Robot& dto, Robot& bo);
121  void toAron(arondto::Robot& dto, const Robot& bo);
122 
123  void fromAron(const arondto::RobotState& dto, RobotState& bo);
124  void toAron(arondto::RobotState& dto, const RobotState& bo);
125 
126 } // namespace armarx::armem::robot_state
armarx::armem::robot_state::fromAron
void fromAron(const arondto::ObjectInstance &dto, RobotState &bo)
Definition: aron_conversions.cpp:27
armarx::armem::robot_state::localization
Definition: aron_conversions.cpp:11
armarx::armem::robot_state::description::fromAron
void fromAron(const arondto::ObjectClass &dto, RobotDescription &bo)
Definition: aron_conversions.cpp:10
armarx::armem
Definition: LegacyRobotStateMemoryAdapter.cpp:31
armarx::armem::robot_state
Definition: RobotStatePredictionClient.cpp:42
armarx::armem::robot_state::proprioception::fromAron
void fromAron(const armarx::armem::prop::arondto::ForceTorque &dto, ForceTorque &bo)
Definition: aron_conversions.cpp:73
armarx::armem::robot_state::proprioception::toAron
void toAron(armarx::armem::prop::arondto::ForceTorque &dto, const ForceTorque &bo)
Definition: aron_conversions.cpp:82
armarx::armem::robot_state::localization::toAron
void toAron(arondto::Transform &dto, const Transform &bo)
Definition: aron_conversions.cpp:24
armarx::armem::human::Robot
@ Robot
Definition: util.h:14
armarx::viz::InteractionFeedbackType::Transform
@ Transform
The element was transformed (translated or rotated).
armarx::armem::robot_state::localization::fromAron
void fromAron(const arondto::Transform &dto, Transform &bo)
Definition: aron_conversions.cpp:17
armarx::armem::robot_state::exteroception
Definition: aron_conversions.cpp:91
armarx::armem::robot_state::description
Definition: aron_conversions.cpp:6
armarx::armem::robot_state::description::toAron
void toAron(arondto::ObjectClass &dto, const RobotDescription &bo)
Definition: aron_conversions.cpp:17
types.h
armarx::armem::Time
armarx::core::time::DateTime Time
Definition: forward_declarations.h:13
armarx::armem::robot_state::proprioception
Definition: aron_conversions.cpp:70
armarx::armem::robot_state::exteroception::fromAron
void fromAron(const armarx::armem::exteroception::arondto::ToF &dto, ToF &bo)
Definition: aron_conversions.cpp:94
armarx::armem::robot_state::toAron
void toAron(arondto::ObjectInstance &dto, const RobotState &bo)
Definition: aron_conversions.cpp:33
armarx::aron::bo
const std::optional< BoT > & bo
Definition: aron_conversions.h:168
armarx::armem::robot_state::exteroception::toAron
void toAron(armarx::armem::exteroception::arondto::ToF &dto, const ToF &bo)
Definition: aron_conversions.cpp:102