Go to the documentation of this file.
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;
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);
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