-
Notifications
You must be signed in to change notification settings - Fork 148
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
ModifyPlanningScene: different transformations for PlanningScene & RobotState #168
Comments
Sounds like you found a bug in MoveIt's planning scenes with respect to diff scenes. Can you provide a test for the main moveit repository? |
I wouldn't even expect |
Very true indeed. The @JafarAbdi could we get you to write a patch for this in MoveIt and add tests to check whether the correct transforms are used? |
I would be really happy to open a PR to fix it, but I still don't know what causes this bug
Sorry for asking this question but I'm not very familiar with how PlanningScene handle transforms internally, could you please give an example where the wrong API is being used .? |
As @rhaschke pointed out, these lines use |
I debugged the issue and filed a PR: moveit/moveit#2113. |
When I add a collision object to the scene using ModifyPlanningScene it gets added relative to the start state of the robot not the stage's current state, to reproduce checkout this branch and run the demo
roslaunch moveit_task_constructor_demo demo.launch
&roslaunch moveit_task_constructor_demo pickplace.launch
The reason is on my machine
scene->getTransforms().getTransform("panda_hand")
see returns different transformation thanscene->getCurrentState().getGlobalLinkTransform("panda_hand")
see andprocessCollisionObjectMsg
uses the first one internally seeIs this an expected behaviour, or am I misunderstanding something.?
Thanks!
The text was updated successfully, but these errors were encountered: