grl_kuka_ros_driver.cpp
Go to the documentation of this file.
2 
3 using namespace grl::ros;
4 
5 
6 int main(int argc, char **argv) {
7 
8  ros::init(argc,argv,"kuka_lbr_ros_bridge");
9 
10  if(!ros::master::check())
11  {
12  std::cerr << "WARNING: roscore does not appear to be running\n";
13  }
14 
15  std::shared_ptr<KukaLBRiiwaROSPlugin> plugin(std::make_shared<KukaLBRiiwaROSPlugin>());
16  plugin->construct();
17 
18  ::ros::Rate rate(1000);
19  while (::ros::ok()) {
20  ::ros::spinOnce();
21 
22  plugin->run_one();
23 
24  rate.sleep();
25  }
26 
27  return 0;
28 }
int main(int argc, char **argv)