bumblebee2/main.cpp
Go to the documentation of this file.
1 #include <ros/ros.h>
2 #include "bumblebee2.h"
3 
4 int main(int argc, char** argv)
5 {
6  ros::init(argc, argv, "bumblebee2");
7 
8  ros::NodeHandle nh;
9 
10  std::string path;
11  ros::NodeHandle pNh("~");
12  if(!pNh.hasParam("path"))
13  ROS_ERROR_STREAM("no parameter path");
14  pNh.getParam("path", path);
15 
16  Bumblebee2 camera{nh,path};
17 
18  if(!camera.isOpen())
19  return 1;
20 
21  ROS_INFO_STREAM("Bumblebee2 started.");
22 
23  ros::spin();
24 
25  return 0;
26 }
action_pathConstPtr path
int main(int argc, char **argv)


igvc
Author(s): Matthew Barulic , Al Chaussee
autogenerated on Sun May 10 2015 16:18:45