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
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.
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 }
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char *argv[])
Definition: inference.cpp:33
ROSCPP_DECL bool ok()
bool sleep()
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