main.cpp
Go to the documentation of this file.
2 
3 int main(int argc, char **argv)
4 {
5  ros::init(argc, argv, "cliff_detector");
7  ros::NodeHandle pnh("~");
8 
9  cliff_detector::CliffDetectorNode detector(nh, pnh);
10 
11  while (ros::ok())
12  {
13  ros::Rate rate(detector.getNodeRate());
14  ros::spinOnce();
15  rate.sleep();
16  }
17 
18  return 0;
19 }
int main(int argc, char **argv)
Definition: main.cpp:3
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
unsigned int getNodeRate()
getNodeRate gets rate of data processing loop in node.
ROSCPP_DECL bool ok()
ROSCPP_DECL void spinOnce()


cliff_detector
Author(s): Michal Drwiega (http://www.mdrwiega.com)
autogenerated on Wed May 5 2021 02:56:04