Go to the documentation of this file.
24 #include <type_traits>
26 #include <SimoxUtility/json/json.hpp>
35 #include <armarx/control/common/control_law/aron/KeypointControllerConfig.aron.generated.h>
36 #include <armarx/control/common/control_law/aron/SafetyTaskspaceImpedanceControllerConfig.aron.generated.h>
37 #include <armarx/control/common/control_law/aron/TaskspaceAdmittanceControllerConfig.aron.generated.h>
38 #include <armarx/control/common/control_law/aron/TaskspaceImpedanceControllerConfig.aron.generated.h>
39 #include <armarx/control/common/control_law/aron/TaskspaceMixedImpedanceVelocityControllerConfig.aron.generated.h>
41 #include <armarx/control/common/ft/aron/FTConfig.aron.generated.h>
43 #include <armarx/control/common/mp/aron/MPConfig.aron.generated.h>
47 template <
typename AronType,
typename T>
53 "AronType must be an ARON generated type");
55 const auto dtoConfig = AronType::FromAron(dto);
63 template <
typename T,
typename BOType>
70 return aronDTO.toAronDTO();
73 template <
typename AronDTO>
82 nlohmann::json jsonConfig;
87 dto.read(reader, jsonConfig);
91 template <
typename AronDTO,
typename BO>
95 auto dto = readFromJson<AronDTO>(
filename);
This file is part of ArmarX.
This file is part of ArmarX.
#define ARMARX_CHECK(expression)
Shortcut for ARMARX_CHECK_EXPRESSION.
AronDTO readFromJson(const std::filesystem::path &filename)
std::shared_ptr< Value > value()
This file is part of ArmarX.
T fromAronDict(const ::armarx::aron::data::dto::DictPtr &dto)
std::shared_ptr< Dict > DictPtr
void fromAron(const arondto::PackagePath &dto, PackageFileLocation &bo)
void toAron(arondto::PackagePath &dto, const PackageFileLocation &bo)
::armarx::aron::data::dto::DictPtr toAronDict(const BOType &bo)
This file offers overloads of toIce() and fromIce() functions for STL container types.
const std::optional< BoT > & bo