urdfparser_py fails on valid new transmission element
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
urdfdom (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Description: Ubuntu 14.04.3 LTS
Release: 14.04
trusty version of the lib packaged by ROS
ros-indigo-
Installed: 0.3.0-2trusty-
Candidate: 0.3.0-2trusty-
Version table:
*** 0.3.0-2trusty-
400 http://
100 /var/lib/
Details :
What should happen : urdfparser_py should parse without errors a valid example of a transmission (new type) given in the reference http://
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_
File "/opt/ros/
return cls.from_
File "/opt/ros/
return cls.from_xml(node)
File "/opt/ros/
return cur_type.
File "/opt/ros/
obj.
File "/opt/ros/
self.
File "/opt/ros/
element.
File "/opt/ros/
value = self.value_
File "/opt/ros/
raise Exception(out)
Exception: Could not perform duck-typed parsing.
Value Type: <class 'urdf_parser_
Exception: Required element not set in XML: hardwareInterface
Value Type: <class 'urdf_parser_
Exception: Required attribute not set in XML: type
Thanks for the report Guillaume:
This bug tracker is specific for the urdfdom package delivered from Ubuntu. You problem comes probably from ROS packages. I would recommend to report the bug in one of both:
* Upstream: https:/ /github. com/ros/ urdfdom/ issues answers. ros.org/
* ROS answers: http://