M-File Help: oa2r

M-File Help: oa2r | View code for oa2r

# oa2r

Convert orientation and approach vectors to rotation matrix

R = oa2r(o, a) is an SO(3) rotation matrix (3x3) for the specified orientation and approach vectors (3x1) formed from 3 vectors such that R = [N o a] and N = o x a.

## Notes

- The submatrix is guaranteed to be orthonormal so long as O and A are not parallel.
- The vectors O and A are parallel to the Y- and Z-axes of the coordinate frame.

## References

- Robot manipulators: mathematis, programming and control Richard Paul, MIT Press, 1981.

## See also

rpy2r, eul2r, oa2tr

© 1990-2014 Peter Corke.