Main Page
Namespaces
Classes
Files
File List
File Members
libism
src
markerRotator.cpp
Go to the documentation of this file.
1
18
#include <
ISM/tools/MarkerRotator.hpp
>
19
#include <string>
20
#include <vector>
21
#include <boost/program_options.hpp>
22
#include <fstream>
23
24
/*
25
* Command line tool to rotate coordinates system of marker_based objects in a given database to be adapted to the current used coordinates system.
26
* (CS will be rotated 90 degrees arround the x-axis)
27
*
28
* Usage:
29
* ./markerRotator -s <path-to-source-file> -t <path-to-target-file>
30
*
31
*/
32
33
using namespace
ISM
;
34
using namespace
std
;
35
namespace
po = boost::program_options;
36
37
int
main
(
int
argc,
char
** argv) {
38
po::options_description desc(
"Allowed options"
);
39
desc.add_options()
40
(
"help,h"
,
"produce help message"
)
41
;
42
43
po::options_description required(
"Required"
);
44
required.add_options()
45
(
"source-file,s"
, po::value<string>(),
"source file"
)
46
(
"target-file,t"
, po::value<string>(),
"target file"
)
47
;
48
49
desc.add(required);
50
51
po::variables_map vm;
52
po::store(po::parse_command_line(argc, argv, desc), vm);
53
po::notify(vm);
54
55
if
(vm.count(
"help"
) || !vm.count(
"source-file"
) || !vm.count(
"target-file"
)) {
56
cout << desc <<
"\n"
;
57
return
1;
58
}
59
60
string
sourceFile = vm[
"source-file"
].as<
string
>();
61
string
targetFile = vm[
"target-file"
].as<
string
>();
62
63
64
//actual rotation process
65
MarkerRotator
marker_rotator;
66
marker_rotator.
rotateMarker
(sourceFile, targetFile);
67
}
ISM::MarkerRotator
Definition:
MarkerRotator.hpp:35
std
ISM::MarkerRotator::rotateMarker
void rotateMarker(const std::string &sourceFile, const std::string &targetFile)
Definition:
MarkerRotator.hpp:42
main
int main(int argc, char **argv)
Definition:
markerRotator.cpp:37
ISM
this namespace contains all generally usable classes.
Definition:
AcceptanceFunction.hpp:22
MarkerRotator.hpp
asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40