Public Member Functions | Public Attributes | Private Attributes
Control_Select Class Reference

Select controller class. More...

#include <control_select.h>

List of all members.

Public Member Functions

 Control_Select ()
 Constructor.
 Control_Select (const std::string &filename)
int get_dof ()
 Return the degree of freedom.
void set_control (const std::string &filename)
 Select the proper controller from filename.

Public Attributes

std::string ControllerName
 Controller name.
Computed_torque_method ctm
Impedance impedance
Proportional_Derivative pd
Resolved_acc rra
short space_type
 JOINT_SPACE or CARTESIAN_SPACE.
short type
 Type of controller: PD, CTM,...

Private Attributes

int dof
 Degree of freedom.

Detailed Description

Select controller class.

This class contains an instance of each controller class. The active controller will be selected when reading a controller file. "type" value correspond to the active controller, ex:

Bellow is an exemple of RRA configuration file (more info on configuration file in config.h/cpp):

  [CONTROLLER]

  type:   RESOLVED_RATE_ACCELERATION
  dof:    6

  [GAINS]

  Kvp:         500.0
  Kpp:        5000.0
  Kvo:         500.0
  Kpo:        5000.0

Definition at line 100 of file control_select.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 60 of file control_select.cpp.

Control_Select::Control_Select ( const std::string &  filename)

Member Function Documentation

Return the degree of freedom.

Definition at line 77 of file control_select.cpp.

void Control_Select::set_control ( const std::string &  filename)

Select the proper controller from filename.

Definition at line 83 of file control_select.cpp.


Member Data Documentation

Controller name.

Definition at line 114 of file control_select.h.

Definition at line 108 of file control_select.h.

int Control_Select::dof [private]

Degree of freedom.

Definition at line 116 of file control_select.h.

Definition at line 110 of file control_select.h.

Definition at line 107 of file control_select.h.

Definition at line 109 of file control_select.h.

JOINT_SPACE or CARTESIAN_SPACE.

Definition at line 112 of file control_select.h.

Type of controller: PD, CTM,...

Definition at line 112 of file control_select.h.


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


kni
Author(s): Martin Günther
autogenerated on Mon Aug 14 2017 02:44:13