OnlineBodySchemaAdaptation
2.0
Main Page
Run and Install
Modules
Data Structures
Files
File List
modules
handPoseEstimation
src
handPoseEstimationMain.cpp
Go to the documentation of this file.
1
// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
/*
3
* Copyright: (C) 2017 VisLab, Institute for Systems and Robotics,
4
* Instituto Superior Técnico, Universidade de Lisboa, Lisbon, Portugal
5
* Author: Pedro Vicente <pvicente@isr.tecnico.ulisboa.pt>
6
* CopyPolicy: Released under the terms of the GNU GPL v3.0.
7
*
8
*/
9
18
#include <yarp/os/Network.h>
19
#include <yarp/os/RFModule.h>
20
#include <yarp/os/Log.h>
21
22
#include "
handPoseEstimationModule.h
"
23
24
using namespace
yarp::os
;
25
using namespace
std
;
26
27
int
main(
int
argc,
char
*argv[]) {
28
29
Network yarp;
30
31
if
(! yarp.checkNetwork() ) {
32
yError(
"yarp server does not seem available"
);
33
return
1;
// EXIT_FAILURE
34
}
35
36
handPoseEstimationModule
module;
37
ResourceFinder rf;
38
rf.setVerbose(
false
);
39
rf.setDefaultConfigFile(
"hpe.ini"
);
// overridden by --from
40
rf.configure(argc, argv);
41
42
if
(rf.check(
"help"
))
43
{
44
yInfo(
"Available options:"
);
45
yInfo(
"--name prefix (default: hpe)"
);
46
yInfo(
"--arm arm to estimate (default: right)"
);
47
yInfo(
"--initialMean spread the particles (default:0.0)"
);
48
yInfo(
"--initialStdDev spread the particles (default:3.5)"
);
49
yInfo(
"--artificialNoiseStdDev Initial value after each iteration(default:3.0)"
);
50
yInfo(
"--lowerBound minimum value of Artificial Noise (default=0.04)"
);
51
yInfo(
"--upperBound maximum value of Artificial Noise (default=3.5)"
);
52
yInfo(
"--minimumLikelihood to perform resampling (default=0.55)"
);
53
yInfo(
"--increaseMultiplier for the Artificial Noise (default=1.15)"
);
54
yInfo(
"--decreaseMultiplier for the Artificial Noise (default=0.85)"
);
55
yInfo(
"--KDEStdDev StdDev of each kernel (default=1.0)"
);
56
yInfo(
"--minIteration number of iterations before output estimated Offsets (default=35)"
);
57
return
0;
// EXIT_SUCCESS
58
}
59
60
module.runModule(rf);
61
62
return
0;
63
}
std
handPoseEstimationModule
Class handPoseEstimationModule.
Definition:
handPoseEstimationModule.h:53
handPoseEstimationModule.h
os
Generated by
1.8.11