Skip to content

Commit e6d98e1

Browse files
[Controller] Add error message when a joint is not found.
1 parent a009df6 commit e6d98e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/roscontrol-sot-controller.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,11 @@ bool RCSotController::readParamsJointNames(ros::NodeHandle &robot_nh) {
556556
return false;
557557
}
558558
}
559-
} else
559+
} else {
560+
ROS_ERROR("ROS parameter \"/sot_controller/joint_names\" shoud be defined.")
561+
;
560562
return false;
563+
}
561564

562565
/// Deduce from this the degree of freedom number.
563566
nbDofs_ = joints_name_.size();

0 commit comments

Comments
 (0)