How to get the frame of object bounding box?

Typically: "How do I... ", "How can I... " questions
Post Reply
DrRiften
Posts: 9
Joined: 06 Jun 2024, 13:36

How to get the frame of object bounding box?

Post by DrRiften »

I have noticed that there is sim.getShapeBB which can provide the size of BBox. But how to get the frame of bounding box if i need to get position and orientation of BBox?
It's said that bounding box and the shape itself can have different reference frames https://manual.coppeliarobotics.com/en/ ... Frames.htm.

However, there are some object parameters such as sim.objfloatparam_objbbox_min_x seem relevant. Can I compute bbox frame from such parameters or is there any convenient APIs for it?
coppelia
Site Admin
Posts: 10747
Joined: 14 Dec 2012, 00:25

Re: How to get the frame of object bounding box?

Post by coppelia »

Hello,

as of CoppeliaSim V4.6, you can't retrieve the pose of the bounding box of a shape. But, in CoppeliaSim V4.7, sim.getShapeBB will also return the relative pose of the bounding box (relative to the shape's pose).
CoppeliaSim V4.7 should be out within 1 week.

Cheers
DrRiften
Posts: 9
Joined: 06 Jun 2024, 13:36

Re: How to get the frame of object bounding box?

Post by DrRiften »

coppelia wrote: 08 Jun 2024, 16:17 Hello,

as of CoppeliaSim V4.6, you can't retrieve the pose of the bounding box of a shape. But, in CoppeliaSim V4.7, sim.getShapeBB will also return the relative pose of the bounding box (relative to the shape's pose).
CoppeliaSim V4.7 should be out within 1 week.

Cheers
Thank you for reply! I will waiting for new version then.
Post Reply