#include <srh_joint_velocity_controller.hpp>
Public Member Functions | |
virtual void | getGains (double &p, double &i, double &d, double &i_max, double &i_min) |
bool | init (ros_ethercat_model::RobotState *robot, ros::NodeHandle &n) |
virtual bool | resetGains (std_srvs::Empty::Request &req, std_srvs::Empty::Response &resp) |
bool | setGains (sr_robot_msgs::SetPidGains::Request &req, sr_robot_msgs::SetPidGains::Response &resp) |
SrhJointVelocityController () | |
virtual void | starting (const ros::Time &time) |
virtual void | update (const ros::Time &time, const ros::Duration &period) |
Issues commands to the joint. Should be called at regular intervals. | |
Private Member Functions | |
void | read_parameters () |
read all the controller settings from the parameter server | |
void | resetJointState () |
void | setCommandCB (const std_msgs::Float64ConstPtr &msg) |
set the velocity target from a topic | |
Private Attributes | |
sr_deadband::HysteresisDeadband < double > | hysteresis_deadband |
We're using an hysteresis deadband. | |
boost::scoped_ptr < control_toolbox::Pid > | pid_controller_velocity_ |
double | velocity_deadband |
the velocity deadband value used in the hysteresis_deadband |
Definition at line 37 of file srh_joint_velocity_controller.hpp.
Definition at line 43 of file srh_joint_velocity_controller.cpp.
void controller::SrhJointVelocityController::getGains | ( | double & | p, |
double & | i, | ||
double & | d, | ||
double & | i_max, | ||
double & | i_min | ||
) | [virtual] |
Reimplemented from controller::SrController.
Definition at line 167 of file srh_joint_velocity_controller.cpp.
bool controller::SrhJointVelocityController::init | ( | ros_ethercat_model::RobotState * | robot, |
ros::NodeHandle & | n | ||
) | [virtual] |
Implements controller::SrController.
Definition at line 48 of file srh_joint_velocity_controller.cpp.
void controller::SrhJointVelocityController::read_parameters | ( | ) | [private] |
read all the controller settings from the parameter server
Definition at line 249 of file srh_joint_velocity_controller.cpp.
bool controller::SrhJointVelocityController::resetGains | ( | std_srvs::Empty::Request & | req, |
std_srvs::Empty::Response & | resp | ||
) | [virtual] |
Reimplemented from controller::SrController.
Definition at line 150 of file srh_joint_velocity_controller.cpp.
void controller::SrhJointVelocityController::resetJointState | ( | ) | [private] |
Definition at line 263 of file srh_joint_velocity_controller.cpp.
void controller::SrhJointVelocityController::setCommandCB | ( | const std_msgs::Float64ConstPtr & | msg | ) | [private, virtual] |
set the velocity target from a topic
Reimplemented from controller::SrController.
Definition at line 256 of file srh_joint_velocity_controller.cpp.
bool controller::SrhJointVelocityController::setGains | ( | sr_robot_msgs::SetPidGains::Request & | req, |
sr_robot_msgs::SetPidGains::Response & | resp | ||
) |
Definition at line 129 of file srh_joint_velocity_controller.cpp.
void controller::SrhJointVelocityController::starting | ( | const ros::Time & | time | ) | [virtual] |
Reimplemented from controller::SrController.
Definition at line 117 of file srh_joint_velocity_controller.cpp.
void controller::SrhJointVelocityController::update | ( | const ros::Time & | time, |
const ros::Duration & | period | ||
) | [virtual] |
Issues commands to the joint. Should be called at regular intervals.
Implements controller::SrController.
Definition at line 172 of file srh_joint_velocity_controller.cpp.
sr_deadband::HysteresisDeadband<double> controller::SrhJointVelocityController::hysteresis_deadband [private] |
We're using an hysteresis deadband.
Reimplemented from controller::SrController.
Definition at line 63 of file srh_joint_velocity_controller.hpp.
boost::scoped_ptr<control_toolbox::Pid> controller::SrhJointVelocityController::pid_controller_velocity_ [private] |
Internal PID controller for the velocity loop.
Definition at line 57 of file srh_joint_velocity_controller.hpp.
double controller::SrhJointVelocityController::velocity_deadband [private] |
the velocity deadband value used in the hysteresis_deadband
Definition at line 60 of file srh_joint_velocity_controller.hpp.