#include <mechanical_calibration_controller.h>
|
| | MechanicalCalibrationController ()=default |
| |
| 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.
|
| |
| void | update (const ros::Time &time, const ros::Duration &period) override |
| | Execute corresponding action according to current calibration controller state.
|
| |
| | CalibrationBase ()=default |
| |
| 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.
|
| |
| void | starting (const ros::Time &time) override |
| | Switch all of the actuators state to INITIALIZED.
|
| |
| void | stopping (const ros::Time &time) override |
| |
◆ MechanicalCalibrationController()
| rm_calibration_controllers::MechanicalCalibrationController::MechanicalCalibrationController |
( |
| ) |
|
|
default |
◆ init()
| bool rm_calibration_controllers::MechanicalCalibrationController::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.
Get params from param server and check whether these params are set.Init JointVelocityController.Check whether threshold is set correctly.
- Parameters
-
| robot_hw | The robot hardware abstraction. |
| root_nh | A NodeHandle in the root of the controller manager namespace. This is where the ROS interfaces are setup (publishers, subscribers, services). |
| controller_nh | A NodeHandle in the namespace of the controller. This is where the controller-specific configuration resides. |
- Returns
- True if init successful, false when failed.
◆ update()
| void rm_calibration_controllers::MechanicalCalibrationController::update |
( |
const ros::Time & | time, |
|
|
const ros::Duration & | period ) |
|
override |
Execute corresponding action according to current calibration controller state.
Execute corresponding action according to current joint state. If INITIALIZED, target joint will be set a vel_search_ and countdown_ to move, and switch state to MOVING. If MOVING, target joint will move until current velocity lower than threshold last for a while, and switch state to CALIBRATED. If CALIBRATED, target joint velocity will be set to zero and wait for next command.
- Parameters
-
| time | The current time. |
| period | The time passed since the last call to update. |
The documentation for this class was generated from the following files: