node.cpp
Go to the documentation of this file.
1 #include <ros/ros.h>
3 
5 
6 using namespace ros;
7 
8 int main(int argc, char **argv)
9 {
10  init(argc, argv, NODE_NAME);
11  NodeHandle n;
12 
13  RobotOperator robOp;
14 
15  Rate loopRate(10);
16  while(ok())
17  {
18  robOp.executeCommand();
19  spinOnce();
20  loopRate.sleep();
21  }
22  return 0;
23 }
void executeCommand()
Generates and sends Twist-Message to Robot This is the Operator&#39;s core function and should be called ...
The core of a ROS node to provide purely reactive obstacle avoidance The RobotOperator is supposed to...
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL bool ok()
bool sleep()
#define NODE_NAME
Definition: RobotOperator.h:4
int main(int argc, char **argv)
Definition: node.cpp:8
ROSCPP_DECL void spinOnce()


nav2d_operator
Author(s): Sebastian Kasperski
autogenerated on Tue Nov 7 2017 06:02:46