ViSP
Main Page
Related Pages
Modules
Classes
Examples
All
Classes
Functions
Variables
Enumerations
Enumerator
Friends
Groups
Pages
HelloWorld.cpp
1
#include <iostream>
2
#include <visp/vpMath.h>
3
#include <visp/vpRotationMatrix.h>
4
#include <visp/vpThetaUVector.h>
5
#include <limits>
6
7
int
main()
8
{
9
vpThetaUVector
tu;
10
11
// Construct a rotation matrix from the theta U angles
12
vpRotationMatrix
R(
vpMath::rad
(0.),
vpMath::rad
(180)+100*std::numeric_limits<double>::epsilon(),0.);
13
14
// Extract the theta U angles from a rotation matrix
15
tu.
buildFrom
(R);
16
17
// Since the rotation vector is 3 values column vector, the
18
// transpose operation produce a row vector.
19
vpRowVector
tu_t = tu.
t
();
20
21
// Print the transpose row vector
22
std::cout << tu_t << std::endl;
23
}
example
manual
hello-world
CMake
HelloWorld.cpp
Generated on Fri Apr 26 2013 19:54:32 for ViSP by
1.8.1.2