From 12f25777c148179cdb9b7c4cd68c106fe67b6ac8 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Fri, 5 Dec 2025 11:38:08 -0800 Subject: [PATCH] Revert "Quaternion in urdf (PR123 new attempt) (#194)" This reverts commit 92eb196117a3b99e57adb888d9599473867ed186. Signed-off-by: Steve Peters --- urdf_parser/src/pose.cpp | 18 ------------------ xsd/urdf.xsd | 1 - 2 files changed, 19 deletions(-) diff --git a/urdf_parser/src/pose.cpp b/urdf_parser/src/pose.cpp index be52a9c4..a4a27c75 100644 --- a/urdf_parser/src/pose.cpp +++ b/urdf_parser/src/pose.cpp @@ -107,13 +107,6 @@ bool parsePoseInternal(Pose &pose, tinyxml2::XMLElement* xml) } const char* rpy_str = xml->Attribute("rpy"); - const char* quat_str = xml->Attribute("quat_xyzw"); - if (rpy_str != NULL && quat_str != NULL) - { - CONSOLE_BRIDGE_logError("Both rpy and quat_xyzw orientations are defined. Use either one or the other."); - return false; - } - if (rpy_str != NULL) { try { @@ -124,17 +117,6 @@ bool parsePoseInternal(Pose &pose, tinyxml2::XMLElement* xml) return false; } } - - if (quat_str != NULL) - { - try { - pose.rotation.initQuaternion(quat_str); - } - catch (ParseError &e) { - CONSOLE_BRIDGE_logError(e.what()); - return false; - } - } } return true; } diff --git a/xsd/urdf.xsd b/xsd/urdf.xsd index 086afa85..3f2e67f4 100644 --- a/xsd/urdf.xsd +++ b/xsd/urdf.xsd @@ -27,7 +27,6 @@ -