mrpt_sensorlib.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <ros/ros.h>
5 #include <mrpt/version.h>
7 #if MRPT_VERSION >= 0x199
8 #include <mrpt/io/CFileGZOutputStream.h>
9 using mrpt::io::CFileGZOutputStream;
10 #else
12 using mrpt::utils::CFileGZOutputStream;
13 #endif
14 
15 namespace mrpt_sensors
16 {
23 {
24  protected:
27  std::string cfgfilename_{"sensor.ini"}, cfg_section_{"SENSOR1"};
29  std::string out_rawlog_prefix_;
32 
33  virtual void process_sensor_specific()
34  { /*do nothing by default*/
35  }
36  virtual void init_sensor_specific()
37  { /*do nothing by default*/
38  }
39 
40  public:
42  virtual ~GenericSensorNode();
43 
45  virtual void init(int argc, char** argv);
46 
48  void run();
49 };
50 
51 } // namespace mrpt_sensors
std::string out_rawlog_prefix_
If non-empty, write to rawlog.
CFileGZOutputStream out_rawlog_
mrpt::hwdrivers::CGenericSensor::Ptr sensor_
#define CFileGZOutputStream
virtual void process_sensor_specific()
virtual void init(int argc, char **argv)


mrpt_sensorlib
Author(s): Jose-Luis Blanco-Claraco
autogenerated on Thu Jul 16 2020 03:15:20