Main Page
Classes
Files
File List
File Members
src
node.cpp
Go to the documentation of this file.
1
#include <
ros/ros.h
>
2
#include <
tf/transform_listener.h
>
3
4
#include <
nav2d_operator/RobotOperator.h
>
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
}
transform_listener.h
RobotOperator::executeCommand
void executeCommand()
Generates and sends Twist-Message to Robot This is the Operator's core function and should be called ...
Definition:
RobotOperator.cpp:200
RobotOperator.h
The core of a ROS node to provide purely reactive obstacle avoidance The RobotOperator is supposed to...
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ros::Rate
ros::NodeHandle
ros::ok
ROSCPP_DECL bool ok()
ros
ros::Rate::sleep
bool sleep()
ros.h
RobotOperator
Definition:
RobotOperator.h:30
NODE_NAME
#define NODE_NAME
Definition:
RobotOperator.h:4
main
int main(int argc, char **argv)
Definition:
node.cpp:8
ros::spinOnce
ROSCPP_DECL void spinOnce()
nav2d_operator
Author(s): Sebastian Kasperski
autogenerated on Tue Nov 7 2017 06:02:46