if I load the sink model first, the link orientations in the bowl multibody are all messed up.
but if I create the procedural multibodies first, and then load the sink mesh from stl. the orientations are as expected.
Code: Select all
mbid = p.createMultiBody(
        # 0,
        # -1,
        # -1,
        # (0,0,0),
        # (0,0,0,1),
        linkMasses=[0]*lns,
        linkCollisionShapeIndices=col_shapes,
        linkVisualShapeIndices=col_shapes,
        linkPositions=col_shape_poses,
        linkOrientations=col_shape_orns,
        linkInertialFramePositions=[(0,0,0)]*lns,#col_shape_poses,
        linkInertialFrameOrientations=[(0,0,0,1)]*lns,#col_shape_orns,
        linkParentIndices=[0]*lns,
        linkJointTypes=[p.JOINT_FIXED]*lns,
        linkJointAxis=[(0,0,0)]*lns,
        physicsClientId=pbClientId)
I'm developing code in jupyter notebook.
the orientations in both cases are also same. I checked the diff in an online tool.
please let me know if you need any additional data.