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 }
int main(int argc, char **argv)
Definition: main.cpp:9
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
void spin()
Worker thread loop; sends current velocity command at a fixed rate.
Definition: keyop.cpp:150
Keyboard remote control for your robot.
Definition: keyop.hpp:22
#define ROS_INFO_STREAM(args)
bool init()
Initialises the node.
Definition: keyop.cpp:46
#define ROS_ERROR_STREAM(args)


yocs_keyop
Author(s): Daniel Stonier, Marcus Liebhardt
autogenerated on Mon Jun 10 2019 15:53:34