Skip to content
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

World::moveObject(): only apply changes if there is any non-zero motion #1108

Merged
merged 2 commits into from
Oct 25, 2018

Conversation

rhaschke
Copy link
Contributor

This is a follow up to #957, which introduced World::moveObject().
When transform is the identity matrix, i.e. there is no movement, the object shouldn't be touched.
This follows the rule, only to create a copy of the parent planning scene, when there are actual modifications.

  • Cherry pick to Kinetic

Copy link
Contributor

@mlautman mlautman left a comment

Choose a reason for hiding this comment

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

Why return false? Shouldn't it return true because the object is at the desired location?

@rhaschke
Copy link
Contributor Author

@mlautman Well, my thinking was "no motion -> return false". However, another (probably more appropriate) thinking is "object not found -> return false". Changed.

@rhaschke rhaschke merged commit 1daa1d1 into moveit:melodic-devel Oct 25, 2018
rhaschke added a commit that referenced this pull request Oct 25, 2018
@rhaschke rhaschke deleted the fix-moveObject branch October 27, 2018 04:18
pull bot pushed a commit to shadow-robot/moveit that referenced this pull request Sep 3, 2020
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