-
Notifications
You must be signed in to change notification settings - Fork 344
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
allow EnvironmentBodyRemover not to restore a grabbed body when the grabbing link does not exist #1359
Open
eisoku9618
wants to merge
11
commits into
production
Choose a base branch
from
allow-EnvironmentBodyRemover-to-give-up-regrasp
base: production
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
allow EnvironmentBodyRemover not to restore a grabbed body when the grabbing link does not exist #1359
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
916ce09
allow EnvironmentBodyRemover not to restore a grabbed body when the g…
eisoku9618 75bd3d9
bump version
eisoku9618 a9b772c
need to check _setIgnoreRobotLinkNames existance as well
eisoku9618 3ba1b8a
Merge branch 'production' of https://github.com/rdiankov/openrave int…
eisoku9618 dd08d7f
clarify EnvironmentBodyRemover behavior by taking input arguments
eisoku9618 f22dd99
Merge branch 'production' of https://github.com/rdiankov/openrave int…
eisoku9618 d551f19
add enum type for EnvironmentBodyRemover options
eisoku9618 cbdb9bc
fix the default argument
eisoku9618 8397d76
add the option not to abort
eisoku9618 a001c6a
add the option to abort if any info is lost
eisoku9618 ad73c54
fix typo
eisoku9618 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@eisoku9618 I think you should not change the behavior of
EnvironmentBodyRemover
. There is a complication like this: If there is a grabbed body that has_setIgnoreRobotLinkNames
and some of links are removed by the CBAS change, it is not obvious how this class should be doing.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.
@yoshikikanemoto Eventually we need to take care of grabbed bodies restoring failures either by
EnvironmentBodyRemover
itself or by callers ofEnvironmentBodyRemover
.My only concern is an inconsistency of current
EnvironmentBodyRemover
between active manipulator and grabbed bodies.EnvironmentBodyRemover
tries to restore both active manipulator and grabbed bodies, and the inconsistency is that it allows not restoring active manipulator while it terminates the program (c++11 and later) if unable to restore grabbed bodies.How about adding the input arguments to
EnvironmentBodyRemover
to clarify how this class should behave?If this is still not good and we can leave the inconsistent behavior of
EnvironmentBodyRemover
for now, I can make another utility functionSetConnectedBodyActiveStatesKeepingGrabbedBodiesAsMuchAsPossible
and move the implementation to this.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.
discussed with @yoshikikanemoto
At least, it is better to use a bitmask instead of two booleans for the argument.
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.
@yoshikikanemoto As we discussed, I changed this PR to use a bit mask for the options. Could you check this PR and the changes in the related internal repositories? pipelineid=456553