Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Robot' object has no attribute 'version' #41

Open
GiovanniBorre opened this issue Aug 12, 2020 · 4 comments
Open

AttributeError: 'Robot' object has no attribute 'version' #41

GiovanniBorre opened this issue Aug 12, 2020 · 4 comments

Comments

@GiovanniBorre
Copy link

Hello, i'm trying to run the leg mechanism example using this command:

simmechanics_to_urdf LEGS_MECHANISM.xml --output xml

but i get an error about the attribute version from the robot. I could't find nothing similar in the `issues.

Traceback (most recent call last): File "/usr/local/bin/simmechanics_to_urdf", line 11, in <module> load_entry_point('simmechanics-to-urdf==0.2', 'console_scripts', 'simmechanics_to_urdf')() File "build/bdist.linux-x86_64/egg/simmechanics_to_urdf/firstgen.py", line 1871, in main File "build/bdist.linux-x86_64/egg/simmechanics_to_urdf/firstgen.py", line 175, in convert File "build/bdist.linux-x86_64/egg/simmechanics_to_urdf/firstgen.py", line 202, in generateXML File "/opt/ros/melodic/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py", line 584, in to_xml self.write_xml(doc) File "/opt/ros/melodic/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py", line 577, in write_xml self.XML_REFL.add_to_xml(self, node) File "/opt/ros/melodic/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py", line 550, in add_to_xml attribute.add_to_xml(obj, node) File "/opt/ros/melodic/lib/python2.7/dist-packages/urdf_parser_py/xml_reflection/core.py", line 332, in add_to_xml value = getattr(obj, self.var) AttributeError: 'Robot' object has no attribute 'version'

Thanks

@daniel-dsouza
Copy link

I believe this is related to ros/urdf_parser_py#59

@traversaro
Copy link
Member

Hi @GiovanniBorre and @daniel-dsouza , sorry for the late reply. As @daniel-dsouza mentioned, this is an upstream urdf_parser_py issue. I will leave the issue open until it is fully solved by urdf_parser_py, in the meanwhile if you want to have a reference for a checkout of urdf_parser_py that is working correctly, you can refer to https://github.com/robotology/icub-model-generator/blob/3d61348ded9390e7d0e31057ebd09f8f439f7357/.travis.yml#L57 that is the checkout we actually use for generation of iCub robot models.

cc @Nicogene

@traversaro
Copy link
Member

Related comment in another issue: #36 (comment) .

@Nicogene
Copy link
Member

Nicogene commented Nov 4, 2020

Btw the CI is failing for the same reason https://travis-ci.org/github/robotology/simmechanics-to-urdf/jobs/741344160

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants