Skip to content

What is the correct way to get the distance between and the corresponding closest points? #405

Answered by BolunDai0216
BolunDai0216 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the response!

So we can get the closest points using

capsule_point = res.getNearestPoint1()
box_point = res.getNearestPoint2()

This seems to give the points in world frame coordinates, is there a way to directly get the points in body frame coordinates?

Another question I have is, when I want to compute the distance between the same objects just with different Transform3fs, is there an update function for that?

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by BolunDai0216
Comment options

You must be logged in to vote
7 replies
@BolunDai0216
Comment options

@jcarpent
Comment options

@jcarpent
Comment options

@BolunDai0216
Comment options

@jcarpent
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #403 on April 26, 2023 15:02.