Helper base class template for closed loop HardwareInterfaceAdapter implementations. More...
#include <hardware_interface_adapter.h>

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::Pid > | PidPtr |
Private Attributes | |
| std::vector< scaled_controllers::ScaledJointHandle > * | joint_handles_ptr_ |
| std::vector< PidPtr > | pids_ |
| std::vector< double > | velocity_ff_ |
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.
|
private |
Definition at line 194 of file hardware_interface_adapter.h.
|
inline |
Definition at line 119 of file hardware_interface_adapter.h.
|
inline |
Definition at line 123 of file hardware_interface_adapter.h.
|
inline |
Definition at line 154 of file hardware_interface_adapter.h.
|
inline |
Definition at line 169 of file hardware_interface_adapter.h.
|
inline |
Definition at line 173 of file hardware_interface_adapter.h.
|
private |
Definition at line 199 of file hardware_interface_adapter.h.
|
private |
Definition at line 195 of file hardware_interface_adapter.h.
|
private |
Definition at line 197 of file hardware_interface_adapter.h.