30 #ifndef _SRH_EFFORT_CONTROLLER_HPP_ 31 #define _SRH_EFFORT_CONTROLLER_HPP_ 34 #include <sr_robot_msgs/SetEffortControllerGains.h> 51 virtual void getGains(
double &p,
double &i,
double &
d,
double &i_max,
double &i_min);
53 virtual bool resetGains(std_srvs::Empty::Request &req, std_srvs::Empty::Response &resp);
55 bool setGains(sr_robot_msgs::SetEffortControllerGains::Request &req,
56 sr_robot_msgs::SetEffortControllerGains::Response &resp);
bool setGains(sr_robot_msgs::SetEffortControllerGains::Request &req, sr_robot_msgs::SetEffortControllerGains::Response &resp)
void read_parameters()
read all the controller settings from the parameter server
A generic controller for the Shadow Robot EtherCAT hand's joints.
double clamp_command(double cmd)
clamp the command to effort limits
virtual void getGains(double &p, double &i, double &d, double &i_max, double &i_min)
bool init(ros_ethercat_model::RobotStateInterface *robot, ros::NodeHandle &n)
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.
virtual bool resetGains(std_srvs::Empty::Request &req, std_srvs::Empty::Response &resp)
void setCommandCB(const std_msgs::Float64ConstPtr &msg)
set the effort target from a topic