Skip to content

Add planGraspsAndPick method to move_group_interface - #264

Merged
davetcoleman merged 2 commits into
moveit:indigo-develfrom
Jntzko:planGrasps
Oct 4, 2016
Merged

davetcoleman merged 2 commits into
moveit:indigo-develfrom
Jntzko:planGrasps

Conversation

@Jntzko

@Jntzko Jntzko commented Sep 29, 2016

Copy link
Copy Markdown
Contributor

This utilizes the new GraspPlanning service and provides a way to make use of external grasp
planners without also adding default grasps.

The service definition is proposed in:
moveit/moveit_msgs#32

@v4hn

v4hn commented Sep 29, 2016 •

Copy link
Copy Markdown
Contributor

In the latest discussion in #246 @davetcoleman argued that the pick function should retain its current meaning (at least in indigo), whereas I consider it quite problematic and a safety-issue that the user currently has no way to access the GraspPlanning.srv functionality of the move_group node (it will call an external service when no grasps have been specified) without also invoking a default grasp in edge-conditions.
The proposed additional functions get rid of this restriction and provide an interface in move_group_interface::MoveGroup(Interface) by which such a service is automatically invoked and the function call fails if the service is not available.

Note that this also provides a simpler call structure than the current usage: The service is called by the client code to compute grasps before invoking the pick pipeline.

Notice that the MoveGroup(Interface) class is implemented using an Front->Implementation pattern that makes this change ABI compatible.

@v4hn v4hn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests will only pass once moveit_msgs is merged.
+1 after that though


if (objects.size() < 1)
{
ROS_ERROR_STREAM("Asked for grasps for the object '" << object << "', but the object could not be found");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ROS_ERROR_STREAM_NAMED

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hehe, I proposed that too, but actually none of the log outputs in this class are _NAMED at the moment, and it seemed weird to introduce one occurrence here.

Instead I would propose to name all of them in a later request.

@davetcoleman

Copy link
Copy Markdown
Member

As previously stated, you're welcome to make your proposed functionality changes in Kinetic, but I like this work around for indigo, thank you.

@v4hn

v4hn commented Sep 29, 2016

Copy link
Copy Markdown
Contributor

Sorry dave, I should have added a bit more of my reasoning above.
By now, I pretty much agree with your argument to keep the default grasp(s) in the pick function.
It is a nice show-case.
The point I am worried about is that users cannot use the database_grasp_planning interface without also invoking the default grasps. So if a users utilizes the service interface, they might get unwanted motion plans executed on their hardware if their service is not available for some reason (this happened over here at least twice within a few weeks).
The new interface proposed here changes this.
So if we want to simplify the behavior of the current pick function later on (still makes sense in my opinion), I would actually propose to remove the database_grasp_planning-service-part from the function instead. 🍰

@davetcoleman

Copy link
Copy Markdown
Member

I would actually propose to remove the database_grasp_planning-service-part from the function instead.

But that would again change functionality in indigo that someone might be using. You are proposing this for kinetic I assume?

Also @Jntzko can you add more comments for the pick function explaining how it is different than this new interface?

@v4hn

v4hn commented Sep 30, 2016

Copy link
Copy Markdown
Contributor

But that would again change functionality in indigo that someone might be using. You are proposing this for kinetic I assume?

Yes, of course. That's what I meant by "later on". :)

@Jntzko

Jntzko commented Sep 30, 2016

Copy link
Copy Markdown
Contributor Author

@davetcoleman I changed the comments as you proposed.

@davetcoleman davetcoleman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not merge until after moveit_msgs change.

Also would be great if you could open that PR for adding _NAMED to all the console messages

Jntzko added 2 commits October 4, 2016 12:17
This utilizes the new GraspPlanning service and provides a way to make use of external grasp
planners without also adding default grasps.
@Jntzko

Jntzko commented Oct 4, 2016

Copy link
Copy Markdown
Contributor Author

I have added the _NAMED log outputs.
This should be ready to merged.

@v4hn

v4hn commented Oct 4, 2016 •

Copy link
Copy Markdown
Contributor

@davetcoleman CI passes, all feedback has been addressed, and @Jntzko also added the _NAMED change to this request. I approve.
As the _NAMED change was added after your review, I'll leave it to you to merge it.

@davetcoleman

Copy link
Copy Markdown
Member

@v4hn @Jntzko I started to pick this to the kinetic branch but the recent rename of the move_group_interface makes it pretty tricky - I think you'll have to manually re-implement these changes in the new location. Can you please do this since you are more familiar with both changes? I picked to Jade already via PR. Thanks.

v4hn added a commit to v4hn/moveit that referenced this pull request Oct 31, 2016
This utilizes the new GraspPlanning service and provides a way to make use of external grasp
planners without also adding default grasps.

Forward port of moveit#264.
@v4hn v4hn mentioned this pull request Oct 31, 2016
davetcoleman pushed a commit that referenced this pull request Nov 5, 2016
This utilizes the new GraspPlanning service and provides a way to make use of external grasp
planners without also adding default grasps.

Forward port of #264.
JafarAbdi pushed a commit to JafarAbdi/moveit that referenced this pull request Mar 24, 2022
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.

3 participants