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 namespace armarx::armem
27 {
28  namespace robot_state
29  {
30  struct Transform;
31  struct TransformHeader;
32 
33  struct JointState;
34 
35  } // namespace robot_state
36 
37  namespace prop::arondto
38  {
39  struct Platform;
40  struct ForceTorque;
41  }
42 
43  namespace exteroception::arondto
44  {
45  struct ToF;
46  }
47 
48  namespace arondto
49  {
50  struct Transform;
51  struct TransformHeader;
52 
53  struct JointState;
54 
55  } // namespace arondto
56 
57 
58  void fromAron(const arondto::Transform& dto, robot_state::Transform& bo);
59  void toAron(arondto::Transform& dto, const robot_state::Transform& bo);
60 
61  void fromAron(const arondto::TransformHeader& dto, robot_state::TransformHeader& bo);
62  void toAron(arondto::TransformHeader& dto, const robot_state::TransformHeader& bo);
63 
64  void fromAron(const armarx::armem::prop::arondto::Platform& dto, robot::PlatformState& bo);
65  void toAron(armarx::armem::prop::arondto::Platform& dto, const robot::PlatformState& bo);
66 
67  void fromAron(const armarx::armem::prop::arondto::ForceTorque& dto, robot::ForceTorque& bo);
68  void toAron(armarx::armem::prop::arondto::ForceTorque& dto, const robot::ForceTorque& bo);
69 
70  void fromAron(const armarx::armem::exteroception::arondto::ToF& dto, robot::ToFArray& bo);
71  void toAron(armarx::armem::exteroception::arondto::ToF& dto, const robot::ToFArray& bo);
72 
73 
74 } // namespace armarx::armem
armarx::armem::toAron
void toAron(arondto::MemoryID &dto, const MemoryID &bo)
Definition: aron_conversions.cpp:19
armarx::armem
Definition: LegacyRobotStateMemoryAdapter.cpp:31
armarx::armem::robot_state::TransformHeader
Definition: types.h:31
armarx::armem::robot::ToFArray
Eigen::MatrixXf ToFArray
Definition: types.h:45
armarx::viz::InteractionFeedbackType::Transform
@ Transform
The element was transformed (translated or rotated).
armarx::armem::robot_state::Transform
Definition: types.h:41
armarx::armem::fromAron
void fromAron(const arondto::MemoryID &dto, MemoryID &bo)
Definition: aron_conversions.cpp:8
armarx::armem::robot::ForceTorque
Definition: types.h:37
types.h
armarx::armem::robot::PlatformState
Definition: types.h:32
armarx::aron::bo
const std::optional< BoT > & bo
Definition: aron_conversions.h:166