urg_aqt.h

00001 
00002 /***************************************************************************
00003  *  urg_aqt.h - Thread to retrieve laser data from Hokuyo URG
00004  *
00005  *  Created: Sat Nov 28 01:29:48 2009
00006  *  Copyright  2008-2009  Tim Niemueller [www.niemueller.de]
00007  *
00008  ****************************************************************************/
00009 
00010 /*  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU Library General Public License for more details.
00019  *
00020  *  Read the full text in the LICENSE.GPL file in the doc directory.
00021  */
00022 
00023 #ifndef __PLUGINS_LASER_URG_AQT_H_
00024 #define __PLUGINS_LASER_URG_AQT_H_
00025 
00026 #include "acquisition_thread.h"
00027 
00028 #include <string>
00029 #include <map>
00030 
00031 namespace qrk {
00032   class UrgCtrl;
00033 }
00034 
00035 namespace fawkes {
00036   class TimeWait;
00037 }
00038 
00039 class HokuyoUrgAcquisitionThread : public LaserAcquisitionThread
00040 {
00041  public:
00042   HokuyoUrgAcquisitionThread(std::string &cfg_name, std::string &cfg_prefix);
00043 
00044   // from LaserAcquisitionThread
00045   virtual void pre_init(fawkes::Configuration *config, fawkes::Logger *logger);
00046 
00047   virtual void init();
00048   virtual void finalize();
00049   virtual void loop();
00050 
00051  private:
00052   bool __pre_init_done;
00053   unsigned int __number_of_values;
00054   qrk::UrgCtrl *__ctrl;
00055 
00056   fawkes::TimeWait *__timer;
00057 
00058   std::string  __cfg_name;
00059   std::string  __cfg_prefix;
00060 
00061   std::map<std::string, std::string> __device_info;
00062 
00063   std::string  __cfg_device;
00064 
00065   unsigned int __first_ray;
00066   unsigned int __last_ray;
00067   unsigned int __front_ray;
00068   unsigned int __slit_division;
00069   float        __step_per_angle;
00070   float        __angle_per_step;
00071   float        __angular_range;
00072   unsigned int __offset;
00073 };
00074 
00075 
00076 #endif

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1