43 #include <std_msgs/Float64.h> 76 std::string joint_name;
77 if (!n.
getParam(
"joint", joint_name))
82 joint_ = hw->getHandle(joint_name);
void commandCB(const std_msgs::Float64ConstPtr &msg)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ForwardCommandController()
hardware_interface::JointHandle joint_
realtime_tools::RealtimeBuffer< double > command_buffer_
ros::Subscriber sub_command_
bool getParam(const std::string &key, std::string &s) const
void starting(const ros::Time &time)
~ForwardCommandController()
void update(const ros::Time &, const ros::Duration &)
void setCommand(double command)
const std::string & getNamespace() const
bool init(T *hw, ros::NodeHandle &n)