30 #ifndef _SRH_JOINT_VARIABLE_PID_POSITION_CONTROLLER_HPP_ 31 #define _SRH_JOINT_VARIABLE_PID_POSITION_CONTROLLER_HPP_ 54 virtual void getGains(
double &p,
double &i,
double &
d,
double &i_max,
double &i_min);
56 virtual bool resetGains(std_srvs::Empty::Request &req, std_srvs::Empty::Response &resp);
58 bool setGains(sr_robot_msgs::SetPidGains::Request &req, sr_robot_msgs::SetPidGains::Response &resp);
void setCommandCB(const std_msgs::Float64ConstPtr &msg)
set the position target from a topic
double position_deadband_
the position deadband value used in the hysteresis_deadband
void read_parameters()
read all the controller settings from the parameter server
virtual bool resetGains(std_srvs::Empty::Request &req, std_srvs::Empty::Response &resp)
double smoothing_factor_p_
A generic controller for the Shadow Robot EtherCAT hand's joints.
virtual void updatePid(double, double)
double smoothing_factor_i_
double p_init_
initial PID parameters
bool setGains(sr_robot_msgs::SetPidGains::Request &req, sr_robot_msgs::SetPidGains::Response &resp)
boost::scoped_ptr< PlainPid > pid_controller_position_
Internal PID controller for the position loop.
virtual void getGains(double &p, double &i, double &d, double &i_max, double &i_min)
virtual void starting(const ros::Time &time)
double smoothing_velocity_min_
bool init(ros_ethercat_model::RobotStateInterface *robot, ros::NodeHandle &n)
double smoothing_velocity_max_
virtual void update(const ros::Time &time, const ros::Duration &period)
Issues commands to the joint. Should be called at regular intervals.
sr_deadband::HysteresisDeadband< double > hysteresis_deadband
We're using an hysteresis deadband.
double smoothing_factor_d_
SrhJointVariablePidPositionController()