Skip to content

Commit b19e7e2

Browse files
committed
added an error until load data calibration is checked for and documented
1 parent 499b7e4 commit b19e7e2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lbr_ros2_control/src/controllers/admittance_controller.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ AdmittanceController::state_interface_configuration() const {
3737
}
3838

3939
controller_interface::CallbackReturn AdmittanceController::on_init() {
40+
RCLCPP_ERROR(
41+
this->get_node()->get_logger(),
42+
"The admittance controller currently requires custom lbr_system_config.yaml configurations. "
43+
"Therefore, only experienced users should use it, then remove this error and strictly "
44+
"follow "
45+
"https://lbr-stack.readthedocs.io/en/latest/lbr_fri_ros2_stack/lbr_demos/"
46+
"lbr_demos_advanced_cpp/doc/lbr_demos_advanced_cpp.html#admittance-controller. "
47+
"This error can be removed when a) the controller works with default system configurations "
48+
"and b) the "
49+
"controller checks that load data was successfully calibrated.");
50+
return controller_interface::CallbackReturn::ERROR;
51+
4052
try {
4153
if (!this->get_node()->has_parameter("robot_description")) {
4254
this->get_node()->declare_parameter("robot_description", "");

0 commit comments

Comments
 (0)