ControllerWrapperBase Class Reference

The base class for the ControllerWrapper which allows the private implementation to be in the .cpp file. More...

#include <armarx/control/client/ControllerWrapper.h>

+ Inheritance diagram for ControllerWrapperBase:

Public Types

using ControllerPrx = armarx::control::ConfigurableNJointControllerInterfacePrx
 

Public Member Functions

void activate ()
 Requests the activation of the controller in the RobotUnit. More...
 
 ControllerWrapperBase ()=delete
 
 ControllerWrapperBase (const ControllerPrx &controller, const std::string &controllerName, const std::string &controllerTypeName, const memory::config::Writer &configWriter)
 Constructor for the ControllerWrapperBase class. More...
 
ControllerPrxctrl ()
 Returns the "raw" controller object. More...
 
void daemonize (bool daemonize=true)
 Sets whether the controller should be daemonized. More...
 
void deactivate ()
 Requests the deactivation of the controller in the RobotUnit. More...
 
bool isActive ()
 Check the status of the controller. More...
 
 ~ControllerWrapperBase ()
 Destructor for the ControllerWrapperBase class. More...
 

Protected Member Functions

void updateConfig (const armarx::aron::codegenerator::cpp::AronGeneratedObjectBase &config)
 Updates the configuration of the controller. More...
 

Detailed Description

The base class for the ControllerWrapper which allows the private implementation to be in the .cpp file.

Definition at line 43 of file ControllerWrapper.h.

Member Typedef Documentation

◆ ControllerPrx

using ControllerPrx = armarx::control::ConfigurableNJointControllerInterfacePrx

Definition at line 46 of file ControllerWrapper.h.

Constructor & Destructor Documentation

◆ ControllerWrapperBase() [1/2]

◆ ControllerWrapperBase() [2/2]

ControllerWrapperBase ( const ControllerPrx controller,
const std::string &  controllerName,
const std::string &  controllerTypeName,
const memory::config::Writer &  configWriter 
)

Constructor for the ControllerWrapperBase class.

Parameters
controllerThe controller object.
controllerNameThe name of the controller.
controllerTypeNameThe type name of the controller.
configWriterThe configuration writer object.

Definition at line 36 of file ControllerWrapper.cpp.

◆ ~ControllerWrapperBase()

Destructor for the ControllerWrapperBase class.

When invoked, the controller is deactivated and deleted unless being daemonized.

Definition at line 47 of file ControllerWrapper.cpp.

Member Function Documentation

◆ activate()

void activate ( )

Requests the activation of the controller in the RobotUnit.

Definition at line 58 of file ControllerWrapper.cpp.

◆ ctrl()

Returns the "raw" controller object.

Returns
The controller object.

Definition at line 88 of file ControllerWrapper.cpp.

+ Here is the caller graph for this function:

◆ daemonize()

void daemonize ( bool  daemonize = true)

Sets whether the controller should be daemonized.

Parameters
daemonizeFlag indicating whether to daemonize the controller.

Definition at line 81 of file ControllerWrapper.cpp.

◆ deactivate()

void deactivate ( )

Requests the deactivation of the controller in the RobotUnit.

Definition at line 73 of file ControllerWrapper.cpp.

◆ isActive()

bool isActive ( )

Check the status of the controller.

Definition at line 66 of file ControllerWrapper.cpp.

◆ updateConfig()

void updateConfig ( const armarx::aron::codegenerator::cpp::AronGeneratedObjectBase config)
protected

Updates the configuration of the controller.

This update is two-fold:

  1. The configuration is sent to the controller in the RobotUnit.
  2. The configuration is written to the memory (via the the configuration writer).
Parameters
configThe configuration object.

Definition at line 95 of file ControllerWrapper.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: