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

[Windows & Iron] Issues with Running URDF Tutorial of the Building a Visual Robot Model with URDF from Scratch tutorial on Windows #3996

Open
songyuc opened this issue Oct 30, 2023 · 5 comments
Assignees
Labels
more-information-needed Further information is required

Comments

@songyuc
Copy link
Contributor

songyuc commented Oct 30, 2023

I have been following the Building a Visual Robot Model with URDF from Scratch tutorial using ROS 2 on Windows. I encountered an issue when executing the command to launch the display.launch.py file in the One Shape section:

ros2 launch urdf_tutorial display.launch.py model:=urdf/01-myfirst.urdf

The terminal returned a file not found error: [WinError 2] The system cannot find the file specified. even though the 01-myfirst.urdf file exists in the urdf directory within the urdf_tutorial package. I attempted the command modification suggested in the tutorial to work regardless of the current working directory, but it returned an unrecognized argument error.

ros2: error: unrecognized arguments: --share urdf_tutorial`/urdf/01-myfirst.urdf

I would like to know if this tutorial is supported on Windows and if there are additional steps required to run it successfully on this platform. Any help or guidance would be greatly appreciated.

Thank you!

@mjcarroll
Copy link
Member

It may be that this tutorial needs to be updated to take advantage of file-content substitution, which was added late in the iron release cycle: ros2/launch#708

@songyuc
Copy link
Contributor Author

songyuc commented Nov 13, 2023

Hi, @mjcarroll,

If possible, I would greatly appreciate your assistance in updating the tutorial to address these Windows-specific challenges. Additionally, if there are any suggestions or temporary workarounds I could try in the meantime, I would be grateful for your guidance.

Thank you for your time and dedication to maintaining the ROS documentation. Your efforts greatly aid learners like myself in navigating and utilizing ROS more effectively.

Looking forward to your response.

Best regards,
Yucheng Song

@sloretz
Copy link
Contributor

sloretz commented Nov 16, 2023

@clalancette is it possible ros2/launch#708 needs a backport? 🧇

@clalancette
Copy link
Contributor

@clalancette is it possible ros2/launch#708 needs a backport? 🧇

Well, we already backported it to iron a while ago. We never did backport it to humble, though I don't think that is what this issue is asking for (since it was filed against iron).

That said, in the meantime we actually have removed the problematic portion of this documentation. In particular, urdf_tutorial now depends on urdf_launch, which has some of this functionality built-in. So it is possible that nothing more needs to be done here, and that can be used directly.

@songyuc Can you give this another try on Windows?

@clalancette clalancette added the more-information-needed Further information is required label Nov 16, 2023
@songyuc
Copy link
Contributor Author

songyuc commented Nov 18, 2023

Hi, @clalancette,

I retry reimplementing the tutorial to launch a URDF model using the display.launch.py script in the urdf_tutorial package. However, I am encountering an error saying "file not found: [WinError 2] The system cannot find the file specified".

The URDF files are located in D:\second_ros2_ws\install\share\urdf_tutorial\urdf\ and the display.launch.py is in D:\second_ros2_ws\install\share\urdf_tutorial\launch\.

The command I am running is:

ros2 launch urdf_tutorial display.launch.py model:=install/share/urdf_tutorial/urdf/01-myfirst.urdf

And the error message is:

[INFO] [launch]: All log files can be found below C:\Users\songyuc.ros\log\2023-11-19-00-22-09-620153-DESKTOP-OB91EPG-8384
[INFO] [launch]: Default logging verbosity is set to INFO
[ERROR] [launch]: Caught exception in launch (see debug for traceback): file not found: 
[CN] [WinError 2] 系统找不到指定的文件。
[EN] [WinError 2] The system cannot find the file specified.

I have tried checking the ROS2 environment configuration and my Python environment, but everything seems to be in order.

Any help or guidance would be greatly appreciated.

@songyuc songyuc changed the title [Windows] Issues with Running URDF Tutorial of the Building a Visual Robot Model with URDF from Scratch tutorial on Windows [Windows & Iron] Issues with Running URDF Tutorial of the Building a Visual Robot Model with URDF from Scratch tutorial on Windows Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-information-needed Further information is required
Projects
None yet
Development

No branches or pull requests

4 participants