Go to the documentation of this file.
28 #include <armarx/control/interface/ConfigurableNJointControllerInterface.h>
29 #include <armarx/control/memory/config/Writer.h>
37 const std::string& controllerName,
38 const std::string& controllerTypeName,
39 const memory::config::Writer& configWriter) :
41 controllerName_(controllerName),
42 controllerTypeName_(controllerTypeName),
43 configWriter_(configWriter)
52 ARMARX_INFO <<
"Deactivating and deleting controller `" << controllerName_ <<
"`";
53 controller_->deactivateAndDeleteController();
61 ARMARX_INFO <<
"Activating controller `" << controllerName_ <<
"`";
62 controller_->activateController();
69 return controller_->isControllerActive();
76 ARMARX_INFO <<
"Deactivating controller `" << controllerName_ <<
"`";
77 controller_->deactivateController();
83 ARMARX_INFO <<
"Daemonizing controller `" << controllerName_ <<
"`";
98 ARMARX_VERBOSE <<
"Updating config for controller `" << controllerName_ <<
"`";
101 controller_->updateConfig(config.
toAronDTO());
104 configWriter_.storeConfig(controllerTypeName_, controllerName_, config.
toAron());
ControllerWrapperBase()=delete
void activate()
Requests the activation of the controller in the RobotUnit.
#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...
ControllerPrx & ctrl()
Returns the "raw" controller object.
~ControllerWrapperBase()
Destructor for the ControllerWrapperBase class.
This file is part of ArmarX.
bool isActive()
Check the status of the controller.
void updateConfig(const armarx::aron::codegenerator::cpp::AronGeneratedObjectBase &config)
Updates the configuration of the controller.
void deactivate()
Requests the deactivation of the controller in the RobotUnit.
#define ARMARX_CHECK_EXPRESSION(expression)
This macro evaluates the expression and if it turns out to be false it will throw an ExpressionExcept...
void daemonize(bool daemonize=true)
Sets whether the controller should be daemonized.
virtual armarx::aron::data::dto::DictPtr toAronDTO() const =0
Convert the current bo to the ice representation of an aron variant data dict.
armarx::control::ConfigurableNJointControllerInterfacePrx ControllerPrx
virtual armarx::aron::data::DictPtr toAron() const =0
Convert the current bo to an aron variant data dict.