00001 #ifndef __GSCAM_GSCAM_NODELET_H 00002 #define __GSCAM_GSCAM_NODELET_H 00003 00004 #include <nodelet/nodelet.h> 00005 00006 #include <gscam/gscam.h> 00007 00008 #include <boost/thread.hpp> 00009 00010 namespace gscam { 00011 class GSCamNodelet : public nodelet::Nodelet 00012 { 00013 public: 00014 GSCamNodelet(); 00015 ~GSCamNodelet(); 00016 00017 virtual void onInit(); 00018 00019 private: 00020 boost::scoped_ptr<GSCam> gscam_driver_; 00021 boost::scoped_ptr<boost::thread> stream_thread_; 00022 }; 00023 } 00024 00025 #endif // infdef __GSCAM_GSCAM_NODELET_H