Skip to content

Commit 9eae4ad

Browse files
Remove unnecessary warning
1 parent fe12ce6 commit 9eae4ad

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

joint_trajectory_controller/src/joint_trajectory_controller.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,6 @@ JointTrajectoryController::command_interface_configuration() const
7373
{
7474
controller_interface::InterfaceConfiguration conf;
7575
conf.type = controller_interface::interface_configuration_type::INDIVIDUAL;
76-
if (num_cmd_joints_ == 0)
77-
{
78-
fprintf(
79-
stderr,
80-
"During ros2_control interface configuration, number of command interfaces is not valid;"
81-
" it should be positive. Actual number is %zu\n",
82-
num_cmd_joints_);
83-
std::exit(EXIT_FAILURE);
84-
}
8576
conf.names.reserve(num_cmd_joints_ * params_.command_interfaces.size());
8677
for (const auto & joint_name : command_joint_names_)
8778
{

0 commit comments

Comments
 (0)