Open eisoku9618 opened 1 year ago
not sure we should be supporting this case....
how about calling utils::ConvertToOpenRAVEName
in UpdateFromInfo
?
@rdiankov Thank you for checking.
not sure we should be supporting this case....
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 names should be matching
exception. If openrave should not support this case, I think we should reject such a query in webapi side and change IAM_AllowRenaming
to IAM_StrictNameChecking
in UpdateFromInfo
. Personally I prefer this (not supporting white spaces in openrave) because our registraion UI does not allow a user to input white spaces in bodies/name
.
cc @woswos
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_AllowRenaming
for 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 use
IAM_AllowRenaming`, we don't need to check name matching in that case.