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

How to get gravity center? #6

Open
1mingW opened this issue Sep 18, 2023 · 1 comment
Open

How to get gravity center? #6

1mingW opened this issue Sep 18, 2023 · 1 comment

Comments

@1mingW
Copy link

1mingW commented Sep 18, 2023

Hello @luyh20,

I am wondering how you get the center of gravity of an object. I noticed that you set gravity center to (0,0,0) in the code score_gen_mp.py. Is it same as the grasp center, since the contact points are translated to the grasp coordinate? If so, wouldn't the distance between gravity center and the line connecting two contact points be zero? Or is it the origin of the object coordinate?

And is the contact points transformed twice in init_contact and in contact_find_solo?

@luyh20
Copy link
Owner

luyh20 commented Sep 27, 2023

I use the geometry center of object point cloud to approximate the physcial center of gravity. The coordinate center (0,0,0) of object model defaults to the geometric center. Grasp center is just a point from object model. For example, the lion model's center is (0, 0, 0). Each point of the lion can be a grasp center (the base point of a grasp pose).

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

2 participants