Skip to content
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

learned grasp obj pose is not constant during planning #5

Open
JINXER000 opened this issue Jun 16, 2024 · 0 comments
Open

learned grasp obj pose is not constant during planning #5

JINXER000 opened this issue Jun 16, 2024 · 0 comments

Comments

@JINXER000
Copy link

As I have tried, if I am using learned grasps that generate grasp poses in the world frame, the output plan will go wrong. I guess the reason is that during the planning, obj.observed_pose will be modified from time to time, as it is actually a get_pose() function returning obj position in the pybullet.

To fix this, I add one line set_pose(obj, obj.initial_pose, **kwargs) at the beginning of the get_fn() of get_grasp_gen_fn(). The initial pose is an extra field added to record the object pose before execution Accordingly, at the end of get_grasp_candidates(), I revised the line into grasps_tool = [multiply(invert(grasp), obj.initial_pose) for grasp in grasps_world] , meaning that the grasp pose in the world frame is transformed to the object frame.

Did anyone meet similar issues? Could anyone provide a more elegant solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant