MPlib icon indicating copy to clipboard operation
MPlib copied to clipboard

Attach a non convex mesh to end effector doesn't seem to work

Open nature21 opened this issue 1 year ago • 1 comments

After I attach an already vhacded nonconvex mesh to the end effector of panda arm with the command planner.update_attached_mesh(mesh_path, pose=Pose([0, 0, 0], [1, 0, 0, 0])), I try to print the FCLObject of the mesh by using planner.planning_world.get_object('panda_9_mesh'), the output is [<mplib.pymp.collision_detection.fcl.CollisionObject object at 0x7fb631140470>], which seems that it only contains one single CollisionObject, does this mean that the mesh is actually loaded as a convex mesh? I try to compute IK of a non-collision pose, but every time it gives the failure that the attached mesh is in collision with the scene_pcd, of which the reason might be the mesh is actually loaded as a convex one.

The MPLib version I am using is 0.2.0a0. Thank you for you help in advance.

nature21 avatar May 16 '24 15:05 nature21

By default, all meshes are loaded as non-convex. Please see here. Can you provide the mesh file, please? It might be possible the scale is incorrect. Also if you remove the point cloud does the collision still happen? You can try this to print out all collisions.

Lexseal avatar May 16 '24 16:05 Lexseal