Public Member Functions | Private Types | Private Attributes | List of all members
scaled_controllers::ClosedLoopHardwareInterfaceAdapter< State > Class Template Reference

Helper base class template for closed loop HardwareInterfaceAdapter implementations. More...

#include <hardware_interface_adapter.h>

Inheritance diagram for scaled_controllers::ClosedLoopHardwareInterfaceAdapter< State >:
Inheritance graph
[legend]

Public Member Functions

 ClosedLoopHardwareInterfaceAdapter ()
 
bool init (std::vector< scaled_controllers::ScaledJointHandle > &joint_handles, ros::NodeHandle &controller_nh)
 
void starting (const ros::Time &)
 
void stopping (const ros::Time &)
 
void updateCommand (const ros::Time &, const ros::Duration &period, const State &desired_state, const State &state_error)
 

Private Types

typedef std::shared_ptr< control_toolbox::PidPidPtr
 

Private Attributes

std::vector< scaled_controllers::ScaledJointHandle > * joint_handles_ptr_
 
std::vector< PidPtrpids_
 
std::vector< double > velocity_ff_
 

Detailed Description

template<class State>
class scaled_controllers::ClosedLoopHardwareInterfaceAdapter< State >

Helper base class template for closed loop HardwareInterfaceAdapter implementations.

Adapters leveraging (specializing) this class will generate a command given the desired state and state error using a velocity feedforward term plus a corrective PID term.

Use one of the available template specializations of this class (or create your own) to adapt the ScaledJointTrajectoryController to a specific hardware interface.

Definition at line 116 of file hardware_interface_adapter.h.

Member Typedef Documentation

◆ PidPtr

template<class State >
typedef std::shared_ptr<control_toolbox::Pid> scaled_controllers::ClosedLoopHardwareInterfaceAdapter< State >::PidPtr
private

Definition at line 194 of file hardware_interface_adapter.h.

Constructor & Destructor Documentation

◆ ClosedLoopHardwareInterfaceAdapter()

Definition at line 119 of file hardware_interface_adapter.h.

Member Function Documentation

◆ init()

template<class State >
bool scaled_controllers::ClosedLoopHardwareInterfaceAdapter< State >::init ( std::vector< scaled_controllers::ScaledJointHandle > &  joint_handles,
ros::NodeHandle controller_nh 
)
inline

Definition at line 123 of file hardware_interface_adapter.h.

◆ starting()

template<class State >
void scaled_controllers::ClosedLoopHardwareInterfaceAdapter< State >::starting ( const ros::Time )
inline

Definition at line 154 of file hardware_interface_adapter.h.

◆ stopping()

template<class State >
void scaled_controllers::ClosedLoopHardwareInterfaceAdapter< State >::stopping ( const ros::Time )
inline

Definition at line 169 of file hardware_interface_adapter.h.

◆ updateCommand()

template<class State >
void scaled_controllers::ClosedLoopHardwareInterfaceAdapter< State >::updateCommand ( const ros::Time ,
const ros::Duration period,
const State &  desired_state,
const State &  state_error 
)
inline

Definition at line 173 of file hardware_interface_adapter.h.

Member Data Documentation

◆ joint_handles_ptr_

template<class State >
std::vector<scaled_controllers::ScaledJointHandle>* scaled_controllers::ClosedLoopHardwareInterfaceAdapter< State >::joint_handles_ptr_
private

Definition at line 199 of file hardware_interface_adapter.h.

◆ pids_

template<class State >
std::vector<PidPtr> scaled_controllers::ClosedLoopHardwareInterfaceAdapter< State >::pids_
private

Definition at line 195 of file hardware_interface_adapter.h.

◆ velocity_ff_

template<class State >
std::vector<double> scaled_controllers::ClosedLoopHardwareInterfaceAdapter< State >::velocity_ff_
private

Definition at line 197 of file hardware_interface_adapter.h.


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


scaled_joint_trajectory_controller
Author(s):
autogenerated on Thu Oct 17 2024 02:27:36