Public bug reported:

Description:    Ubuntu 14.04.3 LTS
Release:        14.04

trusty version of the lib packaged by ROS

ros-indigo-urdfdom-py:
  Installed: 0.3.0-2trusty-20150424-0403-+0000
  Candidate: 0.3.0-2trusty-20150424-0403-+0000
  Version table:
 *** 0.3.0-2trusty-20150424-0403-+0000 0
        400 http://packages.ros.org/ros/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

Details :

What should happen : urdfparser_py should parse without errors a  valid
example of a transmission (new type)  given in the reference
http://wiki.ros.org/urdf/XML/Transmission

What happened :  urdfparser_py  fails to parse the valid new type of
transmission. It requires a hardwareInterface to be there where this is
not mandatory (but could exist)

Traceback (most recent call last):
  File "./test_urdf.py", line 48, in <module>
    robot = URDF.from_xml_file(urdf_filename)
  File 
"/opt/ros/indigo/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py",
 line 491, in from_xml_file
    return cls.from_xml_string(xml_string)
  File 
"/opt/ros/indigo/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py",
 line 486, in from_xml_string
    return cls.from_xml(node)
  File 
"/opt/ros/indigo/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py",
 line 481, in from_xml
    return cur_type.from_xml(node)
  File 
"/opt/ros/indigo/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py",
 line 171, in from_xml
    obj.read_xml(node)
  File 
"/opt/ros/indigo/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py",
 line 474, in read_xml
    self.XML_REFL.set_from_xml(self, node)
  File 
"/opt/ros/indigo/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py",
 line 406, in set_from_xml
    element.add_from_xml(obj, child)
  File 
"/opt/ros/indigo/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py",
 line 312, in add_from_xml
    value = self.value_type.from_xml(node)
  File 
"/opt/ros/indigo/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py",
 line 220, in from_xml
    raise Exception(out)
Exception: Could not perform duck-typed parsing.
Value Type: <class 'urdf_parser_py.urdf.Transmission'>
Exception: Required element not set in XML: hardwareInterface

Value Type: <class 'urdf_parser_py.urdf.PR2Transmission'>
Exception: Required attribute not set in XML: type

** Affects: urdfdom (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: parser transmission urdf

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1487180

Title:
  urdfparser_py fails on valid new transmission element

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urdfdom/+bug/1487180/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to