Main Page
Namespaces
Classes
Files
File List
File Members
src
inference.cpp
Go to the documentation of this file.
1
18
// Global includes
19
#include <stdio.h>
20
21
// Package includes
22
#include <
ros/ros.h
>
23
24
// Local includes
25
#include "
inference/SceneInferenceEngine.h
"
26
27
using namespace
ProbabilisticSceneRecognition
;
28
33
int
main
(
int
argc,
char
* argv[])
34
{
35
// Initialize ros node.
36
ros::init
(argc, argv,
"js_probabilistic_scene_inference_engine"
);
37
38
// Create inference engine.
39
SceneInferenceEngine
ie;
40
41
// Specifies the updates per second.
42
ros::Rate
rate(30);
43
44
// Run main loop until termination.
45
while
(
ros::ok
()) {
46
47
// Visualize the probabilistic scene model.
48
ie.
update
();
49
50
// Longing for callbacks.
51
ros::spinOnce
();
52
53
// Sleep for the given time in seconds.
54
rate.
sleep
();
55
}
56
return
0;
57
}
SceneInferenceEngine.h
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ros::Rate
main
int main(int argc, char *argv[])
Definition:
inference.cpp:33
ros::ok
ROSCPP_DECL bool ok()
ProbabilisticSceneRecognition
Definition:
MappedProbabilityTable.h:33
ProbabilisticSceneRecognition::SceneInferenceEngine::update
void update()
Definition:
SceneInferenceEngine.cpp:100
ProbabilisticSceneRecognition::SceneInferenceEngine
Definition:
SceneInferenceEngine.h:46
ros::Rate::sleep
bool sleep()
ros.h
ros::spinOnce
ROSCPP_DECL void spinOnce()
asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54