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

simmechanics-to-urdf not working for me #47

Closed
ale-git opened this issue Apr 16, 2021 · 7 comments
Closed

simmechanics-to-urdf not working for me #47

ale-git opened this issue Apr 16, 2021 · 7 comments
Assignees

Comments

@ale-git
Copy link

ale-git commented Apr 16, 2021

When I try to generate the Mk3 hand URDF model I get the error:

ale@IITICUBLAP193:~/Documents/Projects/icub-model-generator/simmechanics/data/hand_mk3$ ./convertModel.sh 
/usr/local/lib/python3.8/dist-packages/simmechanics_to_urdf-0.2-py3.8.egg/simmechanics_to_urdf/firstgen.py:689: SyntaxWarning: "is" with a literal. Did you mean "=="?
/usr/local/lib/python3.8/dist-packages/simmechanics_to_urdf-0.2-py3.8.egg/simmechanics_to_urdf/firstgen.py:1600: SyntaxWarning: "is" with a literal. Did you mean "=="?
/usr/local/lib/python3.8/dist-packages/simmechanics_to_urdf-0.2-py3.8.egg/simmechanics_to_urdf/firstgen.py:689: SyntaxWarning: "is" with a literal. Did you mean "=="?
/usr/local/lib/python3.8/dist-packages/simmechanics_to_urdf-0.2-py3.8.egg/simmechanics_to_urdf/firstgen.py:1600: SyntaxWarning: "is" with a literal. Did you mean "=="?
/usr/local/lib/python3.8/dist-packages/simmechanics_to_urdf-0.2-py3.8.egg/simmechanics_to_urdf/firstgen.py:369: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
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 "/usr/local/lib/python3.8/dist-packages/simmechanics_to_urdf-0.2-py3.8.egg/simmechanics_to_urdf/firstgen.py", line 1969, in main
  File "/usr/local/lib/python3.8/dist-packages/simmechanics_to_urdf-0.2-py3.8.egg/simmechanics_to_urdf/firstgen.py", line 238, in convert
  File "/usr/local/lib/python3.8/dist-packages/simmechanics_to_urdf-0.2-py3.8.egg/simmechanics_to_urdf/firstgen.py", line 1596, in addXMLBlobs
  File "/usr/local/lib/python3.8/dist-packages/simmechanics_to_urdf-0.2-py3.8.egg/simmechanics_to_urdf/firstgen.py", line 1603, in addXMLBlob
TypeError: append() argument must be xml.etree.ElementTree.Element, not lxml.etree._Element
Error: File doesn't exist[left_hand_mk3.urdf]
Error [parser.cc:334] Error finding file [left_hand_mk3.urdf].
Error: SDF parsing the xml failed

The source is here:

https://github.com/ale-git/icub-model-generator/tree/devel/simmechanics/data/hand_mk3

@traversaro
Copy link
Member

Hi @ale-git, on which distribution are you? How did you installed urdf_parser_py and simmechanics_to_urdf?

@traversaro traversaro self-assigned this Apr 16, 2021
@ale-git
Copy link
Author

ale-git commented Apr 17, 2021

Hi @traversaro , I'm on Ubuntu 20.04 in WSL 2. I did as described here https://github.com/robotology/simmechanics-to-urdf

git clone https://github.com/ros/urdf_parser_py
cd urdf_parser_py
sudo python setup.py install
git clone https://github.com/robotology/simmechanics-to-urdf
cd simmechanics-to-urdf
sudo python setup.py install

@traversaro
Copy link
Member

Hi @ale-git , I think your problem can be solved by using a specific commit of urdf_parser_py, see #48 . You can read more about this problem at #36 .

@fiorisi
Copy link
Member

fiorisi commented Apr 26, 2021

@ale-git following the @traversaro suggestion I was able to generate the model.
image

I still have this warning (see the suggested page ):
image

@traversaro
Copy link
Member

Hi @fiorisi, I opened a separate issue in #49 for the warning, that however should not affect the output of the conversion.

@traversaro
Copy link
Member

@ale-git @fiorisi as the specific problem of which version to use is now documented in https://github.com/robotology/simmechanics-to-urdf/pull/48/files and the cleanup of how dependencies are obtained is tracked in #46, probably we can close this issue?

@fiorisi
Copy link
Member

fiorisi commented May 13, 2021

@ale-git @fiorisi as the specific problem of which version to use is now documented in https://github.com/robotology/simmechanics-to-urdf/pull/48/files and the cleanup of how dependencies are obtained is tracked in #46, probably we can close this issue?

Yes @traversaro. Thanks again for your support!

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

3 participants