-
Notifications
You must be signed in to change notification settings - Fork 19
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
Added bugfix for cloning grabbed objects. #51
Conversation
This is likely related to rdiankov/openrave#335. It's really unfortunate that we still have these mysterious cloning issues in OpenRAVE. In any case, it's better to have the check than to silently fail. 👍 |
Added bugfix for cloning grabbed objects.
Ok, so I'm running into similar problems now (and related to #51). Looks like the following: If you call RegrabAll, as #51 changed the code to do, the list of links to ignore for a grasped object are reset. More specifically, if I call robot.GetGrabbedInfio()[idx]._setRobotLinksToIgnore, the list is different then cloned_robot.GetGrabbedInfio()[idx]._setRobotLinksToIgnore. But if you do not call RegrabAll(), then this doesn't happen. So regrab isn't setting the correct collision list. I don't see any way to manually modify this list. I'm not sure what regrab was helping with actually, since it is causing an error now, so I can't remove it and test to see if it doesn't break anything for anyone. |
This behavior is extremely case-specific. While calling In any case, the robot links are set from scratch based on OpenRAVE's heuristic, which disables links that are in contact when the clone happens, as well as links flagged as adjacent in the robot XML/SRDF. You can try moving the robot to a known-good pose where it will pick the collisions that you want, then clone, then move it back in the cloned environment. This was the best thing we could figure out to do, since nothing else was consistent. At least with this hack, the links would have the same collision list every time, and it would be something valid. You might want to create a new issue for this, #51 is really old and doesn't show up in the tracker, and I don't think this is the issue that you are facing (rather, you are facing a side-effect of the fix for #51). You can refer to #51 in your issue, which will open a link to here. |
I'm having trouble with a collision between the robot link and a grabbed What I'm really confused about is why this isnt an issue more often, Also, I don't see an easy way to set this list of links to ignore through On Fri, Aug 19, 2016 at 7:09 PM Pras Velagapudi [email protected]
|
Due to a bug in OpenRAVE, cloned grabbed objects may have incorrect adjacency properties, causing them to not be evaluated correctly for self collisions (with the robot). This bugfix forces cloned environments to regrab all objects, which resets these incorrect links.