30#include <armarx/control/interface/ConfigurableNJointControllerInterface.h>
31#include <armarx/control/memory/config/Writer.h>
47 using ControllerPrx = armarx::control::ConfigurableNJointControllerInterfacePrx;
59 const std::string& controllerName,
60 const std::string& controllerTypeName,
61 const memory::config::Writer& configWriter);
111 const std::string controllerName_;
112 const std::string controllerTypeName_;
113 memory::config::Writer configWriter_;
114 bool daemonized_ =
false;
134 static_assert(not std::is_void<typename ControllerDescriptionType::AronDTO>::value,
135 "You must provide a ControllerDescription!");
154 const std::string& controllerName,
155 const memory::config::Writer& configWriter,
166 static_assert(::armarx::aron::cpp::isAronGeneratedClass<AronConfigT>,
167 "The AronConfigT must be an AronGeneratedClass!");
182 auto cfg =
ctrl()->getConfig();
183 return AronConfigT::FromAron(cfg);
typename ControllerDescriptionType::AronDTO AronConfigT
ControllerWrapper(const ControllerWrapper &)=delete
void updateConfig()
Updates the configuration of the controller.
ControllerWrapper & operator=(ControllerWrapper const &)=delete
detail::ControllerWrapperBase Base
ControllerDescription< T > ControllerDescriptionType
ControllerWrapper()=delete
ControllerWrapper(const ControllerPrx &controller, const std::string &controllerName, const memory::config::Writer &configWriter, AronConfigT config)
Constructor for ControllerWrapper.
The base class for the ControllerWrapper which allows the private implementation to be in the ....
void updateConfig(const armarx::aron::codegenerator::cpp::AronGeneratedObjectBase &config)
Updates the configuration of the controller.
void activate()
Requests the activation of the controller in the RobotUnit.
void deactivate()
Requests the deactivation of the controller in the RobotUnit.
ControllerPrx & ctrl()
Returns the "raw" controller object.
bool isActive()
Check the status of the controller.
ControllerWrapperBase()=delete
armarx::control::ConfigurableNJointControllerInterfacePrx ControllerPrx
void daemonize(bool daemonize=true)
Sets whether the controller should be daemonized.
~ControllerWrapperBase()
Destructor for the ControllerWrapperBase class.
#define ARMARX_CHECK_NOT_NULL(ptr)
This macro evaluates whether ptr is not null and if it turns out to be false it will throw an Express...
aron::cpp::AronGeneratedObjectBase AronGeneratedObjectBase
This file is part of ArmarX.
This file is part of ArmarX.