-
Notifications
You must be signed in to change notification settings - Fork 8
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
Check if everything is still working after urdf_parser_py modification of collision and visual tags #36
Comments
@traversaro actually it is not ok: with the latest It seems the developers of the parser also noted the lack of backward compatibility of the Note that in my specific case there was another installation of the library that was hiding my modifications. In fact, the Now it seems to me that everything is working fine. |
If I remember correctly the changes in ros/urdf_parser_py#26, we can simply strictly require the latest version of |
I updated the title of the issue to reflect the current focus, after the evidence of the regression introduced in ros/urdf_parser_py#26 . |
A fix for the regression was proposed in ros/urdf_parser_py#47 by @k-okada, but unfortunately upstream seems not to be interested in the PR. |
Using urdf_parser_py's commit 31474b9baaf7c3845b40e5a9aa87d5900a2282c3, that precedes the regression introduced in ros/urdf_parser_py#26 (ros/urdf_parser_py#26) and discussed in robotology/simmechanics-to-urdf#36 (robotology/simmechanics-to-urdf#36). The commit used is based from the info contained in this icub-models commit: robotology/icub-models@b69b989 (robotology/icub-models@b69b989).
Using urdf_parser_py's commit 31474b9baaf7c3845b40e5a9aa87d5900a2282c3, that precedes the regression introduced in ros/urdf_parser_py#26 (ros/urdf_parser_py#26) and discussed in robotology/simmechanics-to-urdf#36 (robotology/simmechanics-to-urdf#36). The commit used is based from the info contained in this icub-models commit: robotology/icub-models@b69b989 (robotology/icub-models@b69b989).
# Fix the way the FT IMU frames are added - add individual accelerometer and gyroscope type frames to the associated IMU frame - fix naming conventions - sensorName to be all in small letters - do not export these frames as zero-mass links in the urdf - just add these frames as sensor frames to the associated link # Use latest known working version of deps: Use latest confirmed working version of urdf_parser_py Using urdf_parser_py's commit 31474b9baaf7c3845b40e5a9aa87d5900a2282c3, that precedes the regression introduced in ros/urdf_parser_py#26 (ros/urdf_parser_py#26) and discussed in robotology/simmechanics-to-urdf#36 (robotology/simmechanics-to-urdf#36). The commit used is based from the info contained in this icub-models commit: robotology/icub-models@b69b989 (robotology/icub-models@b69b989). * Increase tolerance as a workaround for known asimmetry, see #125
The fix has been merged in the |
@traversaro 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 "build/bdist.linux-x86_64/egg/urdf_parser_py/xml_reflection/core.py", line 588, in to_xml
File "build/bdist.linux-x86_64/egg/urdf_parser_py/xml_reflection/core.py", line 581, in write_xml
File "build/bdist.linux-x86_64/egg/urdf_parser_py/xml_reflection/core.py", line 554, in add_to_xml
File "build/bdist.linux-x86_64/egg/urdf_parser_py/xml_reflection/core.py", line 336, in add_to_xml
AttributeError: 'Robot' object has no attribute 'version' The error is the same as the issue https://github.com/dic-iit/component_ironcub/issues/138 |
That is another An easy way to reproduce the bug is: import urdf_parser_py
import xml
xml.etree.ElementTree.tostring(urdf_parser_py.urdf.URDF("robot_name").to_xml()) that gives the error:
while the following call works fine: import urdf_parser_py
import xml
xml.etree.ElementTree.tostring(urdf_parser_py.urdf.URDF("robot_name", 1.0).to_xml()) that prints: <robot name="robot_name" version="1.0" /> |
I have tried running the URDF toolchain and noticed that with the most recent versions of The generated file has no links to any of the meshes, which results in the model not being successfully loaded when launching it in gazebo. This should be reproducible by following the installation procedure and using the most recent versions for cc @traversaro |
We need to fix the regression in visual and collision elements introduced in ros/urdf_parser_py#26 and discussed in #38 .
The text was updated successfully, but these errors were encountered: