Main Page
Namespaces
Classes
Files
File List
File Members
src
learner_batch.cpp
Go to the documentation of this file.
1
18
// Global includes
19
#include <cstdlib>
20
21
// Package includes
22
#include <
ros/ros.h
>
23
24
#include <
learner/pbd_computation_graph.hpp
>
25
26
// Local includes
27
#include "
learner/SceneLearningEngine.h
"
28
29
using namespace
ProbabilisticSceneRecognition
;
30
31
int
main
(
int
argc,
char
* argv[])
32
{
33
ros::init
(argc, argv,
"js_probabilistic_scene_learner"
);
34
35
// Declaration of the learner for the scene model.
36
SceneLearningEngine
* learner;
37
38
// Check for wrong configurations and similar.
39
try
{
40
learner =
new
SceneLearningEngine
();
41
42
}
catch
(std::exception& exception){
43
std::cerr << exception.what() << std::endl;
44
std::exit(1);
45
}
46
47
// Get all ISM::ObjectSets from databasefiles passed as ros parameters.
48
learner->
readLearnerInput
();
49
50
// Check for errors with the resulting scene model
51
try
{
52
// Calculate parameters of scene model based on scene graphs from rosbag input.
53
learner->
generateSceneModel
();
54
55
// Dump model to file and plot its distributions.
56
learner->
saveSceneModel
();
57
}
catch
(std::exception& exception) {
58
std::cerr << exception.what() << std::endl;
59
}
60
61
// Get rid of learner object.
62
delete
learner;
63
64
// Stating that program has run correctly.
65
return
EXIT_SUCCESS;
66
}
67
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
pbd_computation_graph.hpp
ProbabilisticSceneRecognition::SceneLearningEngine
Definition:
SceneLearningEngine.h:48
ProbabilisticSceneRecognition::SceneLearningEngine::generateSceneModel
void generateSceneModel()
Definition:
SceneLearningEngine.cpp:140
main
int main(int argc, char *argv[])
Definition:
learner_batch.cpp:31
ProbabilisticSceneRecognition
Definition:
MappedProbabilityTable.h:33
ros.h
ProbabilisticSceneRecognition::SceneLearningEngine::readLearnerInput
void readLearnerInput()
Definition:
SceneLearningEngine.cpp:107
ProbabilisticSceneRecognition::SceneLearningEngine::saveSceneModel
void saveSceneModel()
Definition:
SceneLearningEngine.cpp:153
SceneLearningEngine.h
asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54