src
ros
grl_kuka_ros_driver.cpp
Go to the documentation of this file.
1
#include <
grl/ros/KukaLBRiiwaROSPlugin.hpp
>
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
}
KukaLBRiiwaROSPlugin.hpp
grl::ros
Definition:
KukaLBRiiwaROSPlugin.hpp:44
main
int main(int argc, char **argv)
Definition:
grl_kuka_ros_driver.cpp:6