You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error got by urdf_parser_py with urdf with that transmission.
File "/home/user/.local/share/FreeCAD/Mod/freecad.robotcad/freecad/cross/urdf_loader.py", line 99, in load_from_file
robot = Robot.from_xml_string(
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/ros/jazzy/lib/python3.12/site-packages/urdf_parser_py/xml_reflection/core.py", line 612, in from_xml_string
return cls.from_xml(node, path)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/ros/jazzy/lib/python3.12/site-packages/urdf_parser_py/xml_reflection/core.py", line 606, in from_xml
return cur_type.from_xml(node, path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/ros/jazzy/lib/python3.12/site-packages/urdf_parser_py/xml_reflection/core.py", line 228, in from_xml
obj.read_xml(node, path)
File "/opt/ros/jazzy/lib/python3.12/site-packages/urdf_parser_py/xml_reflection/core.py", line 594, in read_xml
self.XML_REFL.set_from_xml(self, node, path)
File "/opt/ros/jazzy/lib/python3.12/site-packages/urdf_parser_py/xml_reflection/core.py", line 509, in set_from_xml
element.add_from_xml(obj, child, element_path)
File "/opt/ros/jazzy/lib/python3.12/site-packages/urdf_parser_py/xml_reflection/core.py", line 386, in add_from_xml
value = self.value_type.from_xml(node, path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/ros/jazzy/lib/python3.12/site-packages/urdf_parser_py/xml_reflection/core.py", line 279, in from_xml
raise ParseError(Exception(out), path)
ParseError in /robot[@name='pr2']/transmission[@name='r_wrist_trans']:
Could not perform duck-typed parsing.
Value Type: <class 'urdf_parser_py.urdf.Transmission'>
Exception: ParseError in /robot[@name='pr2']/transmission[@name='r_wrist_trans']:
Required element not set in XML: type
The text was updated successfully, but these errors were encountered:
Looks like urdfdom and urdfdom_py are parsers with different behaviour and that should not be so.
I have issue with transmission what was fixed in ros/urdfdom#36 (comment)
problem urdf is:
I see matches of needed tags (rightActuator) https://github.com/ros/urdfdom/blob/3f6bf9a608065464bb6c2828af6e96c8f577f2bf/xsd/urdf.xsd#L247 and therefore urdfdom should be ok with it (i did not tested)
but urdfdom_py leads to error and i dont see any matches of rightActuator https://github.com/search?q=repo%3Aros%2Furdf_parser_py%20rightActuator&type=code Looks like urdfdom_py cant work with it.
Error got by urdf_parser_py with urdf with that transmission.
The text was updated successfully, but these errors were encountered: