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 2022
18  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19  * GNU General Public License
20  */
21 
22 #pragma once
23 
24 // #include <RobotAPI/interface/aron/Aron.h>
26 
27 namespace IceInternal
28 {
29  template <typename T>
30  class Handle;
31 }
32 
34 {
35  class Dict;
37 }
38 
39 namespace armarx
40 {
41  template <typename AronType, typename T>
42  T
44  {
45  static_assert(
47  "AronType must be an ARON generated type");
48 
49  const auto dtoConfig = AronType::FromAron(dto);
50 
51  T config;
52  fromAron(dtoConfig, config);
53 
54  return config;
55  }
56 } // namespace armarx
57 
59 {
60  namespace platform_global_trajectory
61  {
62  namespace arondto
63  {
64  class Config;
65  }
66 
67  struct Config;
68 
69  void fromAron(const arondto::Config& dto, Config& bo);
70 
71  } // namespace platform_global_trajectory
72 
73  namespace platform_local_trajectory
74  {
75  namespace arondto
76  {
77  class Config;
78  }
79 
80  struct Config;
81 
82  void fromAron(const arondto::Config& dto, Config& bo);
83 
84  } // namespace platform_local_trajectory
85 
86 } // namespace armarx::navigation::platform_controller
armarx::aron::data::dto::DictPtr
::IceInternal::Handle< Dict > DictPtr
Definition: aron_conversions.h:36
armarx::navigation::platform_controller::platform_local_trajectory::fromAron
void fromAron(const arondto::Targets &dto, Targets &bo)
Definition: aron_conversions.cpp:57
armarx::navigation::platform_controller::platform_local_trajectory::Config
Definition: PlatformLocalTrajectoryController.h:63
armarx::navigation::platform_controller::platform_global_trajectory::Config
Definition: PlatformGlobalTrajectoryController.h:61
IceInternal::Handle
Definition: forward_declarations.h:8
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:855
armarx::navigation::platform_controller
This file is part of ArmarX.
Definition: aron_conversions.cpp:32
IceInternal
This file is part of ArmarX.
Definition: InstrumentationI.h:16
armarx::navigation::platform_controller::platform_global_trajectory::fromAron
void fromAron(const arondto::Targets &dto, Targets &bo)
Definition: aron_conversions.cpp:39
armarx::aron::data::dto
Definition: aron_conversions.h:33
armarx::fromAron
void fromAron(const arondto::PackagePath &dto, PackageFileLocation &bo)
T
float T
Definition: UnscentedKalmanFilterTest.cpp:38
AronGeneratedClass.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
armarx::aron::bo
const std::optional< BoT > & bo
Definition: aron_conversions.h:174
armarx::aron::data::Dict
Definition: Dict.h:44