fix check for number of links in urdf

This commit is contained in:
wim 2010-04-07 18:39:17 +00:00
parent 80b19428ed
commit f11fc537bc
1 changed files with 1 additions and 6 deletions

View File

@ -71,15 +71,10 @@ int main(int argc, char** argv)
if (tree.getNrOfSegments() == 0){ if (tree.getNrOfSegments() == 0){
ROS_WARN("Robot state publisher got an empty tree and cannot publish any state to tf"); ROS_WARN("Robot state publisher got an empty tree and cannot publish any state to tf");
ros::spin();
}
else if (tree.getNrOfSegments() == 1){
ROS_WARN("Robot state publisher got a tree with only one segment and cannot publish any state to tf");
ros::spin();
} }
else{ else{
JointStateListener state_publisher(tree); JointStateListener state_publisher(tree);
ros::spin();
} }
ros::spin();
return 0; return 0;
} }