36 #ifndef EFFORT_CONTROLLERS__JOINT_VELOCITY_CONTROLLER_H 37 #define EFFORT_CONTROLLERS__JOINT_VELOCITY_CONTROLLER_H 63 #include <boost/thread/condition.hpp> 64 #include <boost/scoped_ptr.hpp> 67 #include <control_msgs/JointControllerState.h> 68 #include <std_msgs/Float64.h> 126 void getGains(
double &p,
double &i,
double &
d,
double &i_max,
double &i_min);
131 void getGains(
double &p,
double &i,
double &d,
double &i_max,
double &i_min,
bool &antiwindup);
141 void setGains(
const double &p,
const double &i,
const double &d,
const double &i_max,
const double &i_min,
const bool &antiwindup =
false);
166 void setCommandCB(
const std_msgs::Float64ConstPtr& msg);
ros::Subscriber sub_command_
void setGains(const double &p, const double &i, const double &d, const double &i_max, const double &i_min, const bool &antiwindup=false)
Get the PID parameters.
void starting(const ros::Time &time)
This is called from within the realtime thread just before the first call to update.
hardware_interface::JointHandle joint_
Joint Velocity Controller.
void printDebug()
Print debug info to console.
void setCommand(double cmd)
Give set velocity of the joint for next update: revolute (angle) and prismatic (velocity) ...
void update(const ros::Time &time, const ros::Duration &period)
Issues commands to the joint. Should be called at regular intervals.
void setCommandCB(const std_msgs::Float64ConstPtr &msg)
Callback from /command subscriber for setpoint.
std::string getJointName()
Get the name of the joint this controller uses.
control_toolbox::Pid pid_controller_
bool init(hardware_interface::EffortJointInterface *robot, const std::string &joint_name, const control_toolbox::Pid &pid)
void getGains(double &p, double &i, double &d, double &i_max, double &i_min)
Get the PID parameters.
~JointVelocityController()
JointVelocityController()
boost::scoped_ptr< realtime_tools::RealtimePublisher< control_msgs::JointControllerState > > controller_state_publisher_
void getCommand(double &cmd)
Get latest velocity command to the joint: revolute (angle) and prismatic (velocity).