Main Page
Namespaces
Classes
Files
File List
File Members
src
main.cpp
Go to the documentation of this file.
1
#include <
cliff_detector/cliff_detector_node.h
>
2
3
int
main
(
int
argc,
char
**argv)
4
{
5
ros::init
(argc, argv,
"cliff_detector"
);
6
ros::NodeHandle
nh;
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
}
cliff_detector::CliffDetectorNode
Definition:
cliff_detector_node.h:22
ros::NodeHandle
main
int main(int argc, char **argv)
Definition:
main.cpp:3
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ros::Rate
cliff_detector::CliffDetectorNode::getNodeRate
unsigned int getNodeRate()
getNodeRate gets rate of data processing loop in node.
Definition:
cliff_detector_node.cpp:34
ros::ok
ROSCPP_DECL bool ok()
ros::spinOnce
ROSCPP_DECL void spinOnce()
cliff_detector_node.h
cliff_detector
Author(s): Michal Drwiega (http://www.mdrwiega.com)
autogenerated on Wed May 5 2021 02:56:04