Go to the documentation of this file.
30 #include <armarx/control/interface/ConfigurableNJointControllerInterface.h>
31 #include <armarx/control/memory/config/Writer.h>
46 using ControllerPrx = armarx::control::ConfigurableNJointControllerInterfacePrx;
58 const std::string& controllerName,
59 const std::string& controllerTypeName,
60 const memory::config::Writer& configWriter);
110 const std::string controllerName_;
111 const std::string controllerTypeName_;
112 memory::config::Writer configWriter_;
113 bool daemonized_ =
false;
134 "You must provide a ControllerDescription!");
153 const std::string& controllerName,
154 const memory::config::Writer& configWriter,
165 static_assert(::armarx::aron::cpp::isAronGeneratedClass<AronConfigT>,
166 "The AronConfigT must be an AronGeneratedClass!");
179 auto cfg =
ctrl()->getConfig();
180 return AronConfigT::FromAron(cfg);
ControllerWrapperBase()=delete
void updateConfig()
Updates the configuration of the controller.
typename ControllerDescriptionType::AronDTO AronConfigT
void activate()
Requests the activation of the controller in the RobotUnit.
The base class for the ControllerWrapper which allows the private implementation to be in the ....
#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...
This file is part of ArmarX.
ControllerPrx & ctrl()
Returns the "raw" controller object.
Wrapper class for an NJointController proxy.
~ControllerWrapperBase()
Destructor for the ControllerWrapperBase class.
ControllerWrapper & operator=(ControllerWrapper const &)=delete
std::shared_ptr< Value > value()
bool isActive()
Check the status of the controller.
void updateConfig(const armarx::aron::codegenerator::cpp::AronGeneratedObjectBase &config)
Updates the configuration of the controller.
ControllerWrapper()=delete
ControllerWrapper(const ControllerPrx &controller, const std::string &controllerName, const memory::config::Writer &configWriter, AronConfigT config)
Constructor for ControllerWrapper.
void deactivate()
Requests the deactivation of the controller in the RobotUnit.
void daemonize(bool daemonize=true)
Sets whether the controller should be daemonized.
armarx::control::ConfigurableNJointControllerInterfacePrx ControllerPrx