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 
25 
26 
27 namespace armarx
28 {
29  template <typename AronType, typename T>
30  T
32  {
33  static_assert(
35  "AronType must be an ARON generated type");
36 
37  const auto dtoConfig = AronType::FromAron(dto);
38 
39  T config;
40  fromAron(dtoConfig, config);
41 
42  return config;
43  }
44 } // namespace armarx
45 
46 
48 {
49  namespace platform_global_trajectory
50  {
51  namespace arondto
52  {
53  class Config;
54  }
55 
56  struct Config;
57 
58  void fromAron(const arondto::Config& dto, Config& bo);
59 
60  } // namespace platform_global_trajectory
61 
62  namespace platform_local_trajectory
63  {
64  namespace arondto
65  {
66  class Config;
67  }
68 
69  struct Config;
70 
71  void fromAron(const arondto::Config& dto, Config& bo);
72 
73  } // namespace platform_local_trajectory
74 
75 } // namespace armarx::navigation::platform_controller
armarx::navigation::platform_controller::platform_local_trajectory::fromAron
void fromAron(const arondto::Targets &dto, Targets &bo)
Definition: aron_conversions.cpp:60
armarx::navigation::platform_controller::platform_local_trajectory::Config
Definition: PlatformLocalTrajectoryController.h:49
armarx::navigation::platform_controller::platform_global_trajectory::Config
Definition: PlatformGlobalTrajectoryController.h:50
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
armarx::navigation::platform_controller
This file is part of ArmarX.
Definition: aron_conversions.cpp:35
armarx::navigation::platform_controller::platform_global_trajectory::fromAron
void fromAron(const arondto::Targets &dto, Targets &bo)
Definition: aron_conversions.cpp:42
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition: Dict.h:41
armarx::fromAron
void fromAron(const arondto::PackagePath &dto, PackageFileLocation &bo)
T
float T
Definition: UnscentedKalmanFilterTest.cpp:35
AronGeneratedClass.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::aron::bo
const std::optional< BoT > & bo
Definition: aron_conversions.h:168