universal_robot icon indicating copy to clipboard operation
universal_robot copied to clipboard

[WIP] Improved the test_move script in ur_driver

Open hsd-dev opened this issue 6 years ago • 6 comments

Related to https://github.com/ros-industrial/universal_robot/issues/158

hsd-dev avatar Jul 11 '18 16:07 hsd-dev

Some changes I would like to make:

  • Script assumes 6 DOF (#L43 and #L83). Generalize that to N DOF
  • Add velocity checks if possible

This script would not be specific to UR. Would there be a better place for it?

hsd-dev avatar Jul 12 '18 08:07 hsd-dev

@gavanderhoorn please merge if its ok for you

ipa-nhg avatar Aug 23 '18 12:08 ipa-nhg

@ipa-hsd @ipa-nhg: this is definitely an upgrade, but at a first glance it also looks somewhat complex.

The goal of this script is two-fold:

  1. provide an easy way to test the driver
  2. provide an example of how action clients can be used to communicate with the driver

Goal 1 is covered by this, no doubt.

I'm wondering if we're not making things too complex for goal 2 however. The script has a lot of things I would not expect in a (simple) example, such as listening for JointState msgs, dealing with keyboard input and it hides the typical "wait-for-server;create-goal;send-to-server;wait-for-completion" control flow somewhat.

If you agree, we could perhaps keep this file as it is now proposed and add a much simpler version that covers the second goal.

gavanderhoorn avatar Aug 23 '18 12:08 gavanderhoorn

Independent of this: I believe it would be prudent to print a very visible warning drawing attention to the fact that the robot is going to move, and that it is going to move in a certain way. Perhaps the script should also clarify how it is going to move, and that users should make sure the robot has X and Y free space around it?

gavanderhoorn avatar Aug 23 '18 12:08 gavanderhoorn

@gavanderhoorn : I have added the warning messages.

If you agree, we could perhaps keep this file as it is now proposed and add a much simpler version that covers the second goal.

I am not sure of the future of this repo, but maybe the new file can be added to a more generic repository where other arms can be tested as well.

hsd-dev avatar Sep 06 '18 12:09 hsd-dev

I would like merge this to the kinetic-devel branch (first the merge conflict has to be solved). The full package "ur_driver" is deprecated (even removed for new distros), then makes not sense to put here more effort, and the changes of the PR improve the current version.

@gavanderhoorn if you don't want to merge it, I suggest to close the PR, if @ipa-hsd agrees.

ipa-nhg avatar Jul 08 '20 15:07 ipa-nhg