fix faulty check and debug message for prismatic joints without limits

This commit is contained in:
hsu 2010-03-31 03:59:40 +00:00
parent 4b496476d3
commit 9f3c2565fd
1 changed files with 2 additions and 2 deletions

View File

@ -513,9 +513,9 @@ bool Joint::initXml(TiXmlElement* config)
ROS_ERROR("Joint '%s' is of type REVOLUTE but it does not specify limits", this->name.c_str());
return false;
}
else if (this->type == REVOLUTE || this->type == PRISMATIC)
else if (this->type == PRISMATIC)
{
ROS_ERROR("Joint '%s' is of type REVOLUTE but it does not specify limits", this->name.c_str());
ROS_INFO("Joint '%s' is of type PRISMATIC without limits", this->name.c_str());
limits.reset();
}