The third axis of the revolute pin is supposed to be the axis of
rotation of the joint. This method will set the
abs_pin_orientation_matrix and the
orientation_matrix to the same value, that's why a matrix is
expected. Example:
joint.set_rotation_axis(two=(0., 1., 0.),
three=(1., 0., 0.))
It will make the joint rotate along the x axis of
the joint reference frame. In that example, the two keyword
is needed to build the orientation matrix, it confirms that the second
axis of the joint reference frame is also the second axis of the joint
orientation matrix. Another example for rotating along the y
axis:
joint.set_rotation_axis(one=(1., 0., 0.),
three=(0., 1., 0.))
You can still use that method if both orientation matrix are the same
and you know them. If both orientation matrix are not the same, use
set_abs_pin_orientation_matrix and
set_orientation_matrix instead.
- Decorators:
@_SetRevoluteDocumentation("abs_pin_orientation_matrix", "orientation_matrix")
|