Page 1 of 1

How to calculate distance between mannequin and UR5?

Posted: 29 Oct 2020, 07:04
by w1574587
I drag the mannequin and UR5 model into the scene, and set them measurable, add new distance object (Shape: UR5 - All other entities). Start simulation and nothing happen. How to calculate distance between mannequin and UR5? How to read the distance in MATLAB?

BTW I did successfully get the distance between (Shape: UR5_link7_visible - Shape: Group15) in MATLAB.

Re: How to calculate distance between mannequin and UR5?

Posted: 30 Oct 2020, 07:33
by coppelia
Hello,

if you want to get the distance between several objects considered as a single entity, then use collections.
So create a collection that contains your UR5 objects, then you can check distance with:

Code: Select all

sim.checkDistance(collectionHandle,sim.handle_all)
Cheers

Re: How to calculate distance between mannequin and UR5?

Posted: 01 Nov 2020, 10:39
by w1574587
Many thanks!