Trouble converting this .xacro into a .urdf

asked 2021-10-29 11:36:15 -0500

Stressedgineer gravatar image

updated 2021-10-30 12:01:18 -0500

Hello, I'm still a bit new to all of this and am still getting accustomed to ROS. I'm trying to convert this xacro into a urdf for a project that i am working on. I believe i installed ROS correctly on my laptop that runs windows 10, but i keep getting this error when i use the rosrun xacro xacro --inorder -o model.urdf model.urdf.xacro command. What could the issue be here? i have the file i want to convert in the directory so I'm not sure what else i could be doing wrong?

Update2: Sorry for that, here is the error:

C:\Windows\System32>rosrun xacro xacro --indorder -o vision60.urdf vision60.urdf.xacro                                
 Usage: xacro [options] <input>
xacro: error: ←[91mno such option: --indorder←[0m

Update3: so with the help of osilva I was able to fix the original error but I'm still having some issues, this is the new error that is showing up:

in-order processing became default in ROS Melodic. You can drop the option. ←[91mNo such file or directory: V3/vision60v3.xacro [Errno 2] No such file or directory: 'V3/vision60v3.xacro'←[0m when processing file: vision60.urdf.xacro

I'd also like to thank this community for being so helpful, i really appreciate it!

edit retag flag offensive close merge delete

Comments

1

Seems like maybe you forgot to add the error that you're getting? Please edit your question to add.

jarvisschultz gravatar image jarvisschultz  ( 2021-10-29 12:00:02 -0500 )edit

Thanks for pointing that out! totally missed it, just added the error!

Stressedgineer gravatar image Stressedgineer  ( 2021-10-29 13:26:12 -0500 )edit
1

I'm sorry to have to do this for something seemingly minor, but please don't post screenshots of terminal text in question on ROS Answers. It's all text, so there is no need. Just copy-paste the text from the terminal into your question text. Do make sure to format it properly by selecting the text and pressing ctrl+k (or clicking the Preformatted Text button (the one with 101010 on it)).

You don't need to post a new question, just edit your curent one. You can use the edit button/link for this.

After you replace the screenshot with the error message itself, we can re-open your question.

gvdhoorn gravatar image gvdhoorn  ( 2021-10-29 13:45:45 -0500 )edit

Sorry about that! i have updated it now though

Stressedgineer gravatar image Stressedgineer  ( 2021-10-29 16:05:07 -0500 )edit
1

Hi @Stressedgineer looks like there is a syntax error - should be --inorder vs indorder.

osilva gravatar image osilva  ( 2021-10-29 16:40:31 -0500 )edit

Thanks @osilva ! I missed that, that did fix that error but now I'm just getting a new error message, this is what it says:

 in-order processing became default in ROS Melodic. You can drop the option.                                      ←[91mNo such file or directory: V3/vision60v3.xacro [Errno 2] No such file or directory: 'V3/vision60v3.xacro'←[0m      when processing file: vision60.urdf.xacro

Any clue what this could be?

Stressedgineer gravatar image Stressedgineer  ( 2021-10-30 11:55:53 -0500 )edit

This is telling you that vision60v3.xacro file is missing. Hard to tell when you are calling this file without looking at your urdf file.

osilva gravatar image osilva  ( 2021-10-30 18:00:43 -0500 )edit