firewire_camera_driver_node.h
Go to the documentation of this file.
00001 // Copyright (C) 2010-2011 Institut de Robotica i Informatica Industrial, CSIC-UPC.
00002 // Author 
00003 // All rights reserved.
00004 //
00005 // This file is part of iri-ros-pkg
00006 // iri-ros-pkg is free software: you can redistribute it and/or modify
00007 // it under the terms of the GNU Lesser General Public License as published by
00008 // the Free Software Foundation, either version 3 of the License, or
00009 // at your option) any later version.
00010 //
00011 // This program is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public License
00017 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 // 
00019 // IMPORTANT NOTE: This code has been generated through a script from the 
00020 // iri_ros_scripts. Please do NOT delete any comments to guarantee the correctness
00021 // of the scripts. ROS topics can be easly add by using those scripts. Please
00022 // refer to the IRI wiki page for more information:
00023 // http://wikiri.upc.es/index.php/Robotics_Lab
00024 
00025 #ifndef _firewire_camera_driver_node_h_
00026 #define _firewire_camera_driver_node_h_
00027 
00028 #include <iri_base_driver/iri_base_driver_node.h>
00029 #include "firewire_camera_driver.h"
00030 
00031 // diagnostic headers
00032 #include "diagnostic_updater/diagnostic_updater.h"
00033 #include "diagnostic_updater/publisher.h"
00034 
00035 // image transport
00036 #include "image_transport/image_transport.h"
00037 #include <camera_info_manager/camera_info_manager.h>
00038 
00039 // [publisher subscriber headers]
00040 #include <sensor_msgs/Image.h>
00041 
00042 // [service client headers]
00043 
00044 // [action server client headers]
00045 
00046 #include "eventserver.h"
00047 
00065 class FirewireCameraDriverNode : public iri_base_driver::IriBaseNodeDriver<FirewireCameraDriver>
00066 {
00067   private:
00068     // [publisher attributes]
00069     image_transport::ImageTransport *it;
00070     image_transport::CameraPublisher camera_image_publisher_;
00071     sensor_msgs::Image Image_msg_;
00072     camera_info_manager::CameraInfoManager camera_manager;
00073     diagnostic_updater::HeaderlessTopicDiagnostic *diagnosed_camera_image;
00074 
00075     // [subscriber attributes]
00076 
00077     // [service attributes]
00078 
00079     // [client attributes]
00080 
00081     // [action server attributes]
00082 
00083     // [action client attributes]
00084 
00085     // node attributes
00086     double desired_framerate;
00087     CEventServer *event_server;
00088     std::string new_frame_event;
00089     std::string tf_prefix_;
00090 
00098     void postNodeOpenHook(void);
00099 
00100   public:
00118     FirewireCameraDriverNode(ros::NodeHandle& nh);
00119 
00126     ~FirewireCameraDriverNode();
00127 
00128   protected:
00141     void mainNodeThread(void);
00142 
00143     // [diagnostic functions]
00144     void check_configuration(diagnostic_updater::DiagnosticStatusWrapper &stat);
00145 
00156     void addNodeDiagnostics(void);
00157 
00158     // [driver test functions]
00159 
00169     void addNodeOpenedTests(void);
00170 
00180     void addNodeStoppedTests(void);
00181 
00191     void addNodeRunningTests(void);
00192 
00200     void reconfigureNodeHook(int level);
00201 
00202 };
00203 
00204 #endif


iri_firewire_camera
Author(s): Sergi Hernandez Juan
autogenerated on Fri Dec 6 2013 22:28:49