-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
When running the example code, or even just executing the initialization without ros node, this error appears:
youbot@ubuntu:~/Tiling/Ros_Tests$ python KDL_testing.py
FROM STRING
Scalar element defined multiple times: limitUnknown tag: hardwareInterfaceTraceback (most recent call last):
File "KDL_testing.py", line 11, in <module>
main()
File "KDL_testing.py", line 7, in main
kin = youbot_kinematics(open('youbot.urdf').read())
File "/usr/local/lib/python2.7/dist-packages/youbot_pykdl/youbot_pykdl.py", line 50, in __init__
self._youbot = URDF.from_xml_string(urdf)
File "/usr/local/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py", line 486, in from_xml_string
return cls.from_xml(node)
File "/usr/local/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py", line 481, in from_xml
return cur_type.from_xml(node)
File "/usr/local/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py", line 171, in from_xml
obj.read_xml(node)
File "/usr/local/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 "/usr/local/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 "/usr/local/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 "/usr/local/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: no hardwareInterface defined
Value Type: <class 'urdf_parser_py.urdf.PR2Transmission'>
Exception: Required attribute not set in XML: type
The code is
import sys
import rospy
from youbot_pykdl import youbot_kinematics
def main():
kin = youbot_kinematics(open('youbot.urdf').read())
sys.exit()
if __name__ == "__main__":
main()
I have tried with roscore running and without it running, same error. I have also tried the if/else statement for the parameter, but that also does not work. What would be the problem?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels