main.cpp 335 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <ros/ros.h>

#include "libuvc_camera/camera_driver.h"

int main (int argc, char **argv) {
  ros::init(argc, argv, "libuvc_camera");
  ros::NodeHandle nh;
  ros::NodeHandle priv_nh("~");

  libuvc_camera::CameraDriver driver(nh, priv_nh);

  if (!driver.Start())
    return -1;

  ros::spin();

  driver.Stop();

  return 0;
}