urdf-loaders icon indicating copy to clipboard operation
urdf-loaders copied to clipboard

Cloning a URDFRobot results in mimic joints that still point to the original object

Open EzraBrooks opened this issue 2 years ago • 3 comments

We've got an application where we load a robot's URDF and then clone it for use in some motion preview features. However, we've found that if you setJointValue on a joint in the clone that has mimic joints, its mimics move in the original object but not the clone.

EzraBrooks avatar Apr 19 '22 20:04 EzraBrooks

Thanks for the report! Would you like to make a PR with a fix for the problem as well as a new test or two? It should just involve updating the "URDFRobot.copy" and possibly other copy functions to fix up the references.

gkjohnson avatar Apr 19 '22 20:04 gkjohnson

I'll take a stab at it; I'm departing on vacation this evening, but I'll see if I can get a PR in sometime next week.

EzraBrooks avatar Apr 19 '22 22:04 EzraBrooks

we have a workaround for this issue (loading the robot twice) that's not ideal but is keeping us going for now. I will try to circle back to this when I get a chance, but currently have a bunch of non-3D-related issues on my plate for our next few sprints 😄

EzraBrooks avatar May 03 '22 17:05 EzraBrooks