orwell 0.0.0
orwell::ReferenceController< Reference, DerivedController > Class Template Reference

base implementation of a Controller tracking a given Reference More...

#include <ReferenceController.hpp>

Inheritance diagram for orwell::ReferenceController< Reference, DerivedController >:
orwell::AdmittanceController< dof, Reference > orwell::CartesianImpedanceController< dof, Reference > orwell::JointImpedanceController< dof >

Public Types

using Ptr = std::shared_ptr<ReferenceController>
 typedef
 

Public Member Functions

 ReferenceController (const sackmesser::Interface::Ptr &interface, const std::string &name)
 
void setReference (const Reference &reference)
 set Reference
 
const Reference & getReference () const
 provide access to the Reference to derived classes
 

Detailed Description

template<class Reference, class DerivedController>
class orwell::ReferenceController< Reference, DerivedController >

base implementation of a Controller tracking a given Reference

Template Parameters
Referencetarget to be tracked
DerivedControllereither TorqueController, PositionController or VelocityController

Definition at line 35 of file ReferenceController.hpp.

Member Typedef Documentation

◆ Ptr

template<class Reference , class DerivedController >
using orwell::ReferenceController< Reference, DerivedController >::Ptr = std::shared_ptr<ReferenceController>

typedef

Definition at line 74 of file ReferenceController.hpp.

Constructor & Destructor Documentation

◆ ReferenceController()

template<class Reference , class DerivedController >
orwell::ReferenceController< Reference, DerivedController >::ReferenceController ( const sackmesser::Interface::Ptr & interface,
const std::string & name )

loads configuration parameters

Parameters
interfaceinterfaces the configuration server
nameparameter namespace

Definition at line 28 of file ReferenceController.hxx.

29 : DerivedController(interface, name)
30 {}

Member Function Documentation

◆ getReference()

template<class Reference , class DerivedController >
const Reference & orwell::ReferenceController< Reference, DerivedController >::getReference ( ) const

provide access to the Reference to derived classes

Returns
Reference

Definition at line 42 of file ReferenceController.hxx.

43 {
44 return reference_;
45 }

Referenced by orwell::JointImpedanceController< dof >::computeCommand().

◆ setReference()

template<class Reference , class DerivedController >
void orwell::ReferenceController< Reference, DerivedController >::setReference ( const Reference & reference)

set Reference

Parameters
referencetarget to be tracked

Definition at line 36 of file ReferenceController.hxx.

37 {
38 reference_ = reference;
39 }

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