Go to the documentation of this file.
54 ROS_ERROR(
"No given max calibration time, set to default (5s).");
56 if (!controller_nh.
getParam(
"actuator", actuator))
64 ROS_ERROR(
"Velocity threshold was not specified (namespace: %s)", controller_nh.
getNamespace().c_str());
70 ROS_ERROR(
"Negative velocity threshold is not supported for joint %s. Making the velocity threshold positive.",
104 <<
" are calibrated.");
void update(const ros::Time &time, const ros::Duration &period) override
void update(const ros::Time &time, const ros::Duration &period)
bool getParam(const std::string &key, bool &b) const
bool init(hardware_interface::EffortJointInterface *robot, ros::NodeHandle &n)
std::string getJointName()
ROSCONSOLE_CONSOLE_IMPL_DECL void * getHandle(const std::string &name)
void setCommand(double command)
effort_controllers::JointPositionController position_ctrl2_
void setOffset(double offset)
rm_control::ActuatorExtraHandle actuator2_
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
rm_control::ActuatorExtraHandle actuator_
void update(const ros::Time &time, const ros::Duration &period)
bool init(hardware_interface::RobotHW *robot_hw, ros::NodeHandle &root_nh, ros::NodeHandle &controller_nh) override
Get necessary params from param server. Init joint_calibration_controller.
bool calibration_success_
hardware_interface::JointHandle joint_
void setCommand(double cmd)
#define ROS_INFO_STREAM(args)
void setCommand(double pos_target)
std::string getJointName()
double getVelocity() const
bool init(hardware_interface::RobotHW *robot_hw, ros::NodeHandle &root_nh, ros::NodeHandle &controller_nh) override
double velocity_threshold_
double max_calibretion_time_
const std::string & getNamespace() const
void setCalibrated(bool calibrated)
double getPosition() const
effort_controllers::JointVelocityController velocity_ctrl_
hardware_interface::JointHandle joint_