BOX = collisionBox(X,Y,Z)
creates an axis-aligned box collision geometry centered at the origin with X,
Y, and
Z as its
side lengths along the corresponding axes in the geometry-fixed frame. By default, the
geometry-fixed frame collocates with the world frame.
Side length of box geometry along the x-axis, specified as a
positive scalar. Units are in meters.
Data Types: double
Y — Side length of box geometry positive scalar
Side length of box geometry along the y-axis, specified as a
positive scalar. Units are in meters.
Data Types: double
Z — Side length of box geometry positive scalar
Side length of box geometry along the z-axis, specified as a
positive scalar. Units are in meters.
Data Types: double
Pose — Pose eye(4) (default) | real-valued matrix
Pose of the collision geometry relative to the world frame, specified as a 4-by-4 homogeneous
matrix. You can change the pose after you create the collision geometry.
Create two homogeneous transformation matrices. The first matrix is a rotation about the z-axis by radians, and the second matrix is a rotation about the x-axis of radians.
Create a second box collision geometry with the same dimensions as the first. Change its pose to the product of the two matrices. The product corresponds to first rotation about the z-axis followed by rotation about the x-axis. Visualize the result.