Skip to content

remove default grasp from pick-pipeline - #246

Closed
v4hn wants to merge 1 commit into
moveit:indigo-develfrom
v4hn:indigo-remove-dangerous-defaults
Closed

v4hn wants to merge 1 commit into
moveit:indigo-develfrom
v4hn:indigo-remove-dangerous-defaults

Conversation

@v4hn

@v4hn v4hn commented Sep 23, 2016

Copy link
Copy Markdown
Contributor

If a user uses the pick(std::string) interface that means the code
will call the external planning service. If this service is not available
or does not provide grasps, this block added a default grasp.

This is quite dangerous actually, because when the service is not available
this probably means that it hasn't been started or died. In this case the user
didn't get an error message but instead got a more or less random grasp
that got processed instead and that could induce unwanted movements of the manipulator.

Yes this changes semantics in a stable release, but I consider it to be a safety issue.

should be picked to j/k

If a user uses the pick(std::string) interface that means the code
will call the external planning service. If this service is not available
or does not provide grasps, this block added a default grasp.

This is quite dangerous actually, because when the service is not available
this probably means that it hasn't been started or died. In this case the user
didn't get an error message but instead got a more or less random grasp
that got processed instead and that could induce unwanted movements of the manipulator.

Yes this changes semantics in a stable release, but I consider it to be a safety issue.
@davetcoleman

Copy link
Copy Markdown
Member

I do not like the idea of loosing this functionality, but it seems that it should rather be moved somewhere so that it acts like a normal grasp service, or an extra ros parameter should be used to enable/disable it.

@v4hn

v4hn commented Sep 24, 2016

Copy link
Copy Markdown
Contributor Author

I do see the merits of this feature for show-casing MoveIt! . "Hey look, I just tell the framework to pick the object and it works!"
I would nevertheless like to remove the code from this function for at least four reasons:

  • By far most of the time it doesn't work.
  • As stated before it can produce totally unexpected behavior when another node (the one providing the service) is not available.
  • In almost all cases I have seen, the Planning Scene is a rough approximation of the real environment that is not necessarily safe for all movements (one standard example is dangling cables from the end-effector). Only the programmer knows these constraints, so trying "default grasps" without him asking for them invites disaster (and someone pressing the emergency-stop, as happend over here multiple times).
  • There is no way to make use of the service without also possibly invoking this default grasping behavior. This coupling should definitely not exist!

If you would like to retain a "pick the object however you like" function in the interface
we could add a new pickWithDefaultGrasps or similar for that.

@davetcoleman

Copy link
Copy Markdown
Member

Saying this needs to be removed in our indigo LTS branch in the name of "safety" is a stretch. Removing it in kinetic is ok with me though I'd prefer to see a default service be created that has this functionality.

For indigo/jade, please create some sort of rosparam setting that keeps this functionality enabled by default, but allows users like you to disable it permanently. If you don't have time for anything more advanced then I think for kinetic you should have the same rosparam but default it to disabled.

@v4hn

v4hn commented Sep 29, 2016

Copy link
Copy Markdown
Contributor Author

hopefully obsolete. See #264 (comment)

@v4hn v4hn closed this Sep 29, 2016
@v4hn v4hn mentioned this pull request Oct 9, 2016
19 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants