Universal_Robots_ROS_Driver icon indicating copy to clipboard operation
Universal_Robots_ROS_Driver copied to clipboard

Forward script execution failures back to the user

Open fmauch opened this issue 5 years ago • 3 comments

The robot's primary interface actually reports errors in executed script code via a ROBOT_MESSAGE of type ROBOT_MESSAGE_TYPE_RUNTIME_EXCEPTION.

We can catch those and at least print a warning. This way false script code sent to the script interface will not just silently dissolve in the nirvana.

However, from my understanding we cannot know at this point whether this error message actually is triggered by script sent through our driver, which is why I would only print a warning.

fmauch avatar Apr 23 '20 13:04 fmauch

Is the primary interface intended to be used for submitting user scripts?

It was my understanding that it's mostly used by Polyscope.

gavanderhoorn avatar Apr 23 '20 13:04 gavanderhoorn

Well, it is what we use for script commands anyway. (Technically, we use the secondary interface)

The guys at UR suggested to take a look into that solution, so I wanted to write it down here the least.

fmauch avatar Apr 23 '20 13:04 fmauch

O wait. I'm confusing two things. /ignore.

gavanderhoorn avatar Apr 23 '20 13:04 gavanderhoorn