sonar_tritech
Micron.hpp
Go to the documentation of this file.
1 #ifndef SONAR_DRIVER_TASK_HPP
2 #define SONAR_DRIVER_TASK_HPP
3 
4 #include "sonar_tritech/SeaNetMicron.hpp"
5 #include "sonar_tritech/MicronBase.hpp"
6 #include <iodrivers_base/Timeout.hpp>
7 
8 namespace sonar_tritech
9 {
10  class Micron : public MicronBase
11  {
12  protected:
13  /* Dynamic Property setter of config
14  */
15  virtual bool setConfig(::sea_net::MicronConfig const & value);
16 
17  public:
18  Micron(std::string const& name = "sonar_tritech::Micron");
19 
33  bool configureHook();
34 
40  bool startHook();
41 
61  void updateHook();
62 
63  void processIO();
64 
66 
67 
74  // void errorHook();
75 
79  void stopHook();
80 
85  void cleanupHook();
86 
87  private:
88  sea_net::Micron micron;
89  bool hasEchoSounderTimeout;
90  iodrivers_base::Timeout timeoutEchoSounder;
91  bool hasAcquisitionTimeout;
92  iodrivers_base::Timeout timeoutAcquisition;
93 
94  };
95 }
96 
97 #endif
98 
void updateHook()
Definition: Micron.cpp:115
void processEchoSounderPacket()
Definition: Micron.cpp:107
Definition: Micron.hpp:10
void cleanupHook()
Definition: Micron.cpp:125
Micron(std::string const &name="sonar_tritech::Micron")
Definition: Micron.cpp:5
virtual bool setConfig(::sea_net::MicronConfig const &value)
Definition: Micron.cpp:11
Definition: Echosounder.hpp:12
bool startHook()
Definition: Micron.cpp:54
bool configureHook()
Definition: Micron.cpp:31
void processIO()
Definition: Micron.cpp:77
void stopHook()
Definition: Micron.cpp:120