From 9f3c2565fd1a45fc40962084d5b89cc0dfc487f2 Mon Sep 17 00:00:00 2001 From: hsu Date: Wed, 31 Mar 2010 03:59:40 +0000 Subject: [PATCH] fix faulty check and debug message for prismatic joints without limits --- urdf/src/joint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urdf/src/joint.cpp b/urdf/src/joint.cpp index 09bc94e..637da37 100644 --- a/urdf/src/joint.cpp +++ b/urdf/src/joint.cpp @@ -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(); }