-
Notifications
You must be signed in to change notification settings - Fork 938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add functions to set pick and place goal fields #1498
Conversation
Thanks for helping in improving MoveIt! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with suggested changes.
...ng_interface/move_group_interface/include/moveit/move_group_interface/move_group_interface.h
Outdated
Show resolved
Hide resolved
...ng_interface/move_group_interface/include/moveit/move_group_interface/move_group_interface.h
Outdated
Show resolved
Hide resolved
moveit_ros/planning_interface/move_group_interface/src/move_group_interface.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general I approve these changes as well.
@mvieth, please consider Bryce's comments and also add an appropriate python wrapper in wrap_python_move_group.cpp.
Unfortunately, clang-format
requires to revert some of your formatting improvements.
Having thought a little bit more about this PR, I suggest to remove the extra member variables and instead pass those flags as arguments to the corresponding |
I don't think those parameters should change every call. Whatever is providing the goals targets won't change it's transform math, so Place EEF shouldn't change. And, at least for every pick or every place, collision with support should also stay the same. But in general, I agree that less saved state in the class is better, so I'm okay with that implementation as well. |
Maybe it would even make sense to expose the |
I like this idea. Maybe the function names should become more descriptive if exposed, i.e. |
Ok, I pushed the proposed changes. Looking forward to your feedback @rhaschke @BryceStevenWilley . I did not remove the |
My original intention was to get rid off the extra state variables 😉 |
I addressed the remaining issues myself. Awaiting feedback.
According to https://www.codesynthesis.com/~boris/blog/2012/06/19/efficient-argument-passing-cxx11-part1/ this allows the compiler to decide how to optimize.
I would change this line and the previous one to how they originally were, with
I would say that's not necessary any more because a user could just use |
I'm fine with this. Didn't noticed the original state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As @mvieth seems to be happy with the current state, I can approve the PR in its present state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve as long as someone cleans up the history before merging.
Congrats on getting your first MoveIt! pull request merged and improving open source robotics! |
Thanks Robert, I wasn't sure if you are ok with squashing your commits too.
|
Description
Add functions to set fields in the pick and place goals, namely
place_eef
andallow_gripper_support_collision
. Also some minor formatting changes by clang-format.See also issue #631