From 9eae4ad3815a6a523ff60944b06e2ce6c1046ce6 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Fri, 17 Nov 2023 00:08:55 +0000 Subject: [PATCH] Remove unnecessary warning --- .../src/joint_trajectory_controller.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/joint_trajectory_controller/src/joint_trajectory_controller.cpp b/joint_trajectory_controller/src/joint_trajectory_controller.cpp index 169a9c4391..d84e77bbc1 100644 --- a/joint_trajectory_controller/src/joint_trajectory_controller.cpp +++ b/joint_trajectory_controller/src/joint_trajectory_controller.cpp @@ -73,15 +73,6 @@ JointTrajectoryController::command_interface_configuration() const { controller_interface::InterfaceConfiguration conf; conf.type = controller_interface::interface_configuration_type::INDIVIDUAL; - if (num_cmd_joints_ == 0) - { - fprintf( - stderr, - "During ros2_control interface configuration, number of command interfaces is not valid;" - " it should be positive. Actual number is %zu\n", - num_cmd_joints_); - std::exit(EXIT_FAILURE); - } conf.names.reserve(num_cmd_joints_ * params_.command_interfaces.size()); for (const auto & joint_name : command_joint_names_) {