-
Notifications
You must be signed in to change notification settings - Fork 3
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
CREO2URDF – Add the possibility to run URDF
generation from the terminal
#53
Comments
I found this interesting link: In particular we should call something like call "%CREO_INSTALL_PATH%\Parametric\bin\parametric.exe" -g:no_graphics -batch_mode -i:rpc_input -RUN_MY_DESIRED_APPLICATION I have to understand how to handle |
The lack of an automatic generation from Github Action is becoming an issue since the number of maintained urdf is exploding: |
First super draft PR, just the code backbone: |
Habemus call "C:\Program Files\PTC\Creo 9.0.2.0\Parametric\bin\parametric.exe" -g:no_graphics -batch_mode -i:rpc_input creo2urdf +C:\Users\ngenesio\icub-tech-iit\cad-mechanics\projects\simulation_model\ergocub_1-1\sim_ergocub_1-1.asm +C:\Users\ngenesio\icub-tech-iit\cad-libraries\output_urdf\ERGOCUB_all_options.yaml +C:\Users\ngenesio\icub-tech-iit\cad-libraries\output_urdf\ERGOCUB_joint_all_parameters.csv +C:\Users\ngenesio\icub-tech-iit\cad-libraries\output_urdf
As you can see the Moreover, I am using For debugging I used to open the GUI and write in the message window, but it is not an ideal solution |
Great! |
Awesome! |
This comment was marked as outdated.
This comment was marked as outdated.
Maybe you can check in the .bat if the file model.urdf exists to check for success? |
Good idea, I will chatgpt-it :D |
Following @pattacini advice: I converted it into ps script, and this allowed me to improve it a lot:
Here is the help printed:
Here is how it is launched now: .\run_creo2urdf.ps1 -asmPath "C:\Users\ngenesio\icub-tech-iit\cad-mechanics\projects\simulation_model\ergocub_1-1\sim_ergocub_1-1.asm" -yamlPath "C:\Users\ngenesio\icub-tech-iit\cad-libraries\output_urdf\ERGOCUB_all_options.yaml" -csvPath "C:\Users\ngenesio\icub-tech-iit\cad-libraries\output_urdf\ERGOCUB_joint_all_parameters.csv" -outputPath "C:\Users\ngenesio\icub-tech-iit\cad-libraries\output_urdf" Here is the output:
Warning This script has to be run in the Until this will not become stable, this post will be the only documentation for using the plugin (ccing some people may use it cc @FabioBergonti @pillai-s @traversaro @xela-95 @mfussi66) |
It would be nice to have the possibility to generate the
URDF
from the terminal to automate their generation.The text was updated successfully, but these errors were encountered: