Skip to content

How to use distance3d.containment_test.points_in_box? #89

Discussion options

You must be logged in to vote

Hi, as the docstring says, it's a 4x4 numpy array. It is organized as follows:

[[ R11, R12, R13, t1],
  [ R21, R22, R23, t2],
  [ R31, R32, R33, t3],
  [ 0, 0, 0, 1]]

All components with R belong to the rotation matrix and all components with t to the translation vector.

box2origin represents the pose of the box center frame in the origin frame. This is the same as an active transformation of points from box frame to the origin frame.

The function will do exactly what you want to do.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Puiching-Memory
Comment options

You must be logged in to vote
1 reply
@AlexanderFabisch
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