Debian Codegraph @

progs/se3_pre_mul.cxx

raw symbols SCIP
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 <cstdlib>
10 #include <iostream>
11
12 using namespace std;
13 using namespace TooN;
14
15 int main(int argc, char** argv)
16 {
17
18 if(argc != 7)
19 {
20 cerr << argv[0] << "error: put pre multiplication SE3 on command line";
21 return 1;
22 }
23
24 Vector<6> camera;
25
26 for(int i = 0; i < 6; i++)
27 camera[i] = atof(argv[i + 1]);
28
29 Vector<6> in;
30
31 SE3<> s3, c;
32
33 c = SE3<>::exp(camera);
34
35 for(;;)
36 {
37 cin >> in;
38
39 if(!cin.good())
40 return 0;
41
42 s3 = c * SE3<>::exp(in);
43
44 cout << s3.ln() << endl;
45 }
46 }