Universal_Robots_ROS_Driver icon indicating copy to clipboard operation
Universal_Robots_ROS_Driver copied to clipboard

tool_communication: check path for 'tool_device_name' is free/available/owned by user if it exists

Open gavanderhoorn opened this issue 5 years ago • 2 comments

As reported in #107, if the path configured for tool_device_name already exists, there is a chance socat will be unable to use it.

This could be due to permissions on the link, the file already existing (with access permissions which don't allow sufficient access) or the path existing but being a directory (a real one).

The tool_communication could check for this and error out with an appropriate message.

Right now the only output would be something similar to:

socat[15820] E unlink("/tmp/ttyUR"): Operation not permitted

gavanderhoorn avatar Feb 13 '20 09:02 gavanderhoorn

Thanks for tracking that down :-)

fmauch avatar Feb 17 '20 07:02 fmauch

It was @emielke12 who figured it out really.

gavanderhoorn avatar Feb 17 '20 08:02 gavanderhoorn