42 JointEffortController::JointEffortController()
43 : joint_state_(NULL), command_(0), robot_(NULL)
64 ROS_ERROR(
"JointEffortController could not find joint named \"%s\"",
78 std::string joint_name;
87 ROS_ERROR(
"Could not find joint \"%s\" (namespace: %s)",
PLUGINLIB_EXPORT_CLASS(my_controller_ns::MyControllerClass, pr2_controller_interface::Controller)
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())
pr2_mechanism_model::RobotState * robot_
const std::string & getNamespace() const
pr2_mechanism_model::JointState * joint_state_
JointState * getJointState(const std::string &name)
bool getParam(const std::string &key, std::string &s) const
bool init(pr2_mechanism_model::RobotState *robot, const std::string &joint_name)
ros::Subscriber sub_command_