Skip to content

Commit

Permalink
added an error until load data calibration is checked for and documented
Browse files Browse the repository at this point in the history
  • Loading branch information
mhubii committed Nov 22, 2024
1 parent fd2bcbe commit c5bf23f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lbr_ros2_control/src/controllers/admittance_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ AdmittanceController::state_interface_configuration() const {
}

controller_interface::CallbackReturn AdmittanceController::on_init() {
RCLCPP_ERROR(
this->get_node()->get_logger(),
"The admittance controller currently requires custom lbr_system_config.yaml configurations. "
"Therefore, only experienced users should use it, then remove this error and strictly "
"follow "
"https://lbr-stack.readthedocs.io/en/latest/lbr_fri_ros2_stack/lbr_demos/"
"lbr_demos_advanced_cpp/doc/lbr_demos_advanced_cpp.html#admittance-controller. "
"This error can be removed when a) the controller works with default system configurations "
"and b) the "
"controller checks that load data was successfully calibrated.");
return controller_interface::CallbackReturn::ERROR;

try {
this->get_node()->declare_parameter("robot_name", "lbr");
this->get_node()->declare_parameter("admittance.mass",
Expand Down

0 comments on commit c5bf23f

Please sign in to comment.