allow name mismatch when IAM_AllowRenaming is used#1188
Open
eisoku9618 wants to merge 2 commits intoproductionfrom
Open
allow name mismatch when IAM_AllowRenaming is used#1188eisoku9618 wants to merge 2 commits intoproductionfrom
eisoku9618 wants to merge 2 commits intoproductionfrom
Conversation
Owner
|
not sure we should be supporting this case.... |
Collaborator
Author
|
@rdiankov Thank you for checking.
There was a problem that a user used webapi to register an item with white spaces in the name and then our system does not start properly with that cc @woswos |
…o allow-name-with-empty
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
{ "name": "hello world file name", "keywords": [ "part" ], "bodies": [ { "name": "hello world body name", "links": [ { "name": "hello world link name", "geometries": [ { "type": "box", "halfExtents": [ 0.05, 0.05, 0.05 ] } ] } ], "isRobot": false } ] }When I load this file to openrave environment, I get this error.
This is because when we add a kinbody in
UpdateFromInfo()ofenvironment-core.h, we useIAM_AllowRenamingfor new body or robot, so name can be changed e.g.(white space) ->_(underscore) but we compare the original name and the renamed name. For new body or robot, since we useIAM_AllowRenaming, we don't need to check name matching in that case.