From 49f3ec2b62b1d3b9039b4638f1e095eda8f643e6 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Tue, 28 Nov 2023 08:37:12 +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 1fca832c82..0a037ab9ee 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_) {