The third axis of the revolute pin is supposed to be the axis of
rotation of the joint. This method will set the
orientation_matrix1 and the orientation_matrix2
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_orientation_matrix1 and
set_orientation_matrix2 instead.
- Decorators:
@_SetRevoluteDocumentation("orientation_matrix1", "orientation_matrix2")
|