Skip to content

Commit

Permalink
complain if list of joints is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-luedtke committed Jan 27, 2015
1 parent 758d255 commit 4cdc1e4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ class ForwardJointGroupCommandController: public controller_interface::Controlle
return false;
}
n_joints_ = joint_names_.size();


if(n_joints_ == 0){
ROS_ERROR_STREAM("List of joint names is empty.");
return false;
}
for(unsigned int i=0; i<n_joints_; i++)
{
try
Expand Down

0 comments on commit 4cdc1e4

Please sign in to comment.