Main Page
Namespaces
Classes
Files
File List
File Members
src
main.cpp
Go to the documentation of this file.
1
6
#include "
yocs_keyop/keyop.hpp
"
7
8
9
int
main
(
int
argc,
char
**argv)
10
{
11
ros::init
(argc, argv,
"yocs_keyop"
);
12
yocs_keyop::KeyOp
keyop;
13
if
(keyop.
init
())
14
{
15
keyop.
spin
();
16
}
17
else
18
{
19
ROS_ERROR_STREAM
(
"Couldn't initialise KeyOp!"
);
20
}
21
22
ROS_INFO_STREAM
(
"Program exiting"
);
23
return
0;
24
}
main
int main(int argc, char **argv)
Definition:
main.cpp:9
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
yocs_keyop::KeyOp::spin
void spin()
Worker thread loop; sends current velocity command at a fixed rate.
Definition:
keyop.cpp:150
yocs_keyop::KeyOp
Keyboard remote control for your robot.
Definition:
keyop.hpp:22
ROS_INFO_STREAM
#define ROS_INFO_STREAM(args)
yocs_keyop::KeyOp::init
bool init()
Initialises the node.
Definition:
keyop.cpp:46
ROS_ERROR_STREAM
#define ROS_ERROR_STREAM(args)
keyop.hpp
yocs_keyop
Author(s): Daniel Stonier, Marcus Liebhardt
autogenerated on Mon Jun 10 2019 15:53:34