Closed danzimmerman closed 2 years ago
If I try git restore --source=HEAD :/
as suggested in the I get this
(humble) c:\Code\ros2\humble_ws\src\Universal_Robots_ROS2_Driver>git restore --source=HEAD :/
error: invalid path 'ur_robot_driver/resources/ursim_driver/ursim/aux/.vol/urcap_ros_control.installation'
error: invalid path 'ur_robot_driver/resources/ursim_driver/ursim/aux/.vol/urcap_ros_control.script'
error: invalid path 'ur_robot_driver/resources/ursim_driver/ursim/aux/.vol/urcap_ros_control.txt'
error: invalid path 'ur_robot_driver/resources/ursim_driver/ursim/aux/.vol/urcap_ros_control.urp'
error: invalid path 'ur_robot_driver/resources/ursim_driver/ursim/aux/.vol/urcap_ros_control.variables'
error: invalid path 'ur_robot_driver/resources/ursim_driver/ursim/aux/externalcontrol-1.0.5.urcap'
error: invalid path 'ur_robot_driver/resources/ursim_driver/ursim/aux/ros_control.urscript'
error: invalid path 'ur_robot_driver/resources/ursim_driver/ursim/aux/rs485-1.0.urcap'
I think I found the problem. Evidently windows does (or did) not allow directories and folders named aux
/aux.*
Indeed, I can't create a directory named aux
:
(humble) c:\Code\dbgdump>mkdir aux
The directory name is invalid.
I can create files named aux.*
on Windows 11, so maybe this has been alleviated there, and I can create files with no extension, but I can't create a file named aux
alone:
(humble) c:\Code\dbgdump>echo "hello" > aux.go
(humble) c:\Code\dbgdump>echo "hello" > aux.log
(humble) c:\Code\dbgdump>echo "hello" > aux
The system cannot find the file specified.
(humble) c:\Code\dbgdump>echo "hello" > noextensionfile
(humble) c:\Code\dbgdump>dir | findstr aux
06/29/2022 02:52 PM 10 aux.go
06/29/2022 02:52 PM 10 aux.log
(humble) c:\Code\dbgdump>dir | findstr noext
06/29/2022 02:53 PM 10 noextensionfile
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions
Do not use the following reserved names for the name of a file:
CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these names followed immediately by an extension; for example, NUL.txt is not recommended. For more information, see Namespaces.
Closing because it doesn't seem like there's a reason to fix it, and with #403 on the horizon, even downloading a release to use ur_bringup
seems like it will be out of the picture.
I know the driver is not supported on Windows, but I tried to clone the repo to use platform-agnostic packages
ur_bringup
andur_moveit_config
to test MoveIt on a Windows machine with the driver running on a remote Linux machine.If I try to clone the repo, I get this:
The cloned directory is empty and
git status
shows everything in it as deleted:I'm using Git for Windows 2.37:
As a workaround, I downloaded the driver release
.zip
and copiedur_bringup
andur_moveit_config
packages to my workspace. This does work, using Robostack ROS2 Humble.Feel free to close without action. For any real configuration beyond testing I'll have custom MoveIt configs and launch files anyway.
However, I wanted to report this in case it's an easy fix.