velodyne_lidar
Positioning.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2 
3 #ifndef VELODYNE_LIDAR_POSITIONING_TASK_HPP
4 #define VELODYNE_LIDAR_POSITIONING_TASK_HPP
5 
6 #include "velodyne_lidar/PositioningBase.hpp"
7 #include <velodyne_lidar/velodynePositioningDriver.hpp>
8 
9 namespace aggregator
10 {
11  class TimestampEstimator;
12 }
13 
14 class OGRCoordinateTransformation;
15 
16 namespace velodyne_lidar {
17 
32  class Positioning : public PositioningBase
33  {
34  friend class PositioningBase;
35  protected:
36  VelodynePositioningDriver positioning_driver;
37  velodyne_positioning_packet_t buffer;
38  aggregator::TimestampEstimator* timestamp_estimator;
39  OGRCoordinateTransformation *coTransform;
40  RTT::OutputPort< ::base::samples::IMUSensors >* orientation_output_ports[VELODYNE_ORIENTATION_READINGS];
41  States last_state;
42  int last_packet_period; // in microseconds
43  uint32_t last_gps_timestamp; // in microseconds
44  uint32_t gps_timestamp_tolerance; // in microseconds
45 
46 
47  public:
52  Positioning(std::string const& name = "velodyne_lidar::Positioning");
53 
59  Positioning(std::string const& name, RTT::ExecutionEngine* engine);
60 
63  ~Positioning();
64 
79  bool configureHook();
80 
86  bool startHook();
87 
102  void updateHook();
103 
110  void errorHook();
111 
115  void stopHook();
116 
121  void cleanupHook();
122  };
123 }
124 
125 #endif
126 
VelodynePositioningDriver positioning_driver
Definition: Positioning.hpp:36
velodyne_positioning_packet_t buffer
Definition: Positioning.hpp:37
States last_state
Definition: Positioning.hpp:41
OGRCoordinateTransformation * coTransform
Definition: Positioning.hpp:39
uint32_t gps_timestamp_tolerance
Definition: Positioning.hpp:44
Definition: LaserScanner.hpp:11
aggregator::TimestampEstimator * timestamp_estimator
Definition: Positioning.hpp:38
Definition: Positioning.hpp:9
The task context provides and requires services. It uses an ExecutionEngine to perform its functions...
Definition: Positioning.hpp:32
uint32_t last_gps_timestamp
Definition: Positioning.hpp:43
int last_packet_period
Definition: Positioning.hpp:42