| 1 | /* |
| 2 | This file is part of the CVD Library. |
| 3 | |
| 4 | Copyright (C) 2005 The Authors |
| 5 | |
| 6 | This library is free software, see LICENSE file for details |
| 7 | */ |
| 8 | #include <TooN/se3.h> |
| 9 | #include <iostream> |
| 10 | |
| 11 | using namespace std; |
| 12 | using namespace TooN; |
| 13 | |
| 14 | int main() |
| 15 | { |
| 16 | SE3<> se3; |
| 17 | Vector<6> v; |
| 18 | |
| 19 | cin >> v; |
| 20 | se3 = SE3<>::exp(v); |
| 21 | |
| 22 | Matrix<3, 4> m; |
| 23 | m.slice<0, 0, 3, 3>() = se3.get_rotation().get_matrix(); |
| 24 | m.T()[3] = se3.get_translation(); |
| 25 | |
| 26 | cout << m; |
| 27 | return 0; |
| 28 | } |