Shortest distance

Typically: "How do I... ", "How can I... " questions
Post Reply
quangkhieu
Posts: 4
Joined: 29 Feb 2024, 01:33

Shortest distance

Post by quangkhieu »

Hello,

How can I find position of point on shape's bounding that has shorstest distance to robot's reference frame?
Actually, I want to create a tagent vector , are there other ways to find this?

Thanks!

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: Shortest distance

Post by coppelia »

You can use sim.checkDistance(shapeHandle, dummyHandle), where dummyHandle is the handle of a dummy object located at the robot's reference frame.

Cheers

quangkhieu
Posts: 4
Joined: 29 Feb 2024, 01:33

Re: Shortest distance

Post by quangkhieu »

It works, thanks!!

Post Reply