tilt_scan
/build/rock-master-18.09-slam-orogen-tilt-scan-0.20160906/tilt_scanTypes.hpp
Go to the documentation of this file.
1 #ifndef __TILT_SCAN_TYPES_HPP__
2 #define __TILT_SCAN_TYPES_HPP__
3 
4 #include <base/Pose.hpp>
5 #include <stdint.h>
6 
7 namespace tilt_scan
8 {
9  struct Configuration
10  {
13  max_lines(200),
14  sweep_angle_min(-1.0),
15  sweep_angle_max(1.0),
16  sweep_velocity_up(2.0),
19  {}
20 
21  enum Mode {
24  };
25 
28 
30  int max_lines;
31 
34 
37 
40 
43 
45  std::string sweep_servo_name;
46 
49  };
50 
51  struct SweepStatus
52  {
53  SweepStatus() : counter(0), curState(NOT_SWEEPING)
54  {};
55 
56  enum State {
62  };
64  uint8_t counter;
65 
68 
70  std::string sourceName;
71 
78  bool isNextSweep(SweepStatus lastState)
79  {
80  return NOT_SWEEPING || lastState.counter != counter;
81  }
82  };
83 
84 }
85 
86 #endif
int max_lines
Definition: tilt_scanTypes.hpp:30
bool sweep_back_and_forth
Definition: tilt_scanTypes.hpp:48
Mode mode
Definition: tilt_scanTypes.hpp:27
Definition: tilt_scanTypes.hpp:9
Definition: tilt_scanTypes.hpp:51
Definition: tilt_scanTypes.hpp:60
uint8_t counter
counter of the sweeps, wraps at 255
Definition: tilt_scanTypes.hpp:64
Definition: tilt_scanTypes.hpp:61
float sweep_velocity_up
Definition: tilt_scanTypes.hpp:39
float sweep_velocity_down
Definition: tilt_scanTypes.hpp:42
Configuration()
Definition: tilt_scanTypes.hpp:11
State
Definition: tilt_scanTypes.hpp:56
std::string sourceName
name of the sweeping device
Definition: tilt_scanTypes.hpp:70
float sweep_angle_max
Definition: tilt_scanTypes.hpp:36
Definition: Task.hpp:10
Definition: tilt_scanTypes.hpp:22
Definition: tilt_scanTypes.hpp:57
State curState
current state of sweeping
Definition: tilt_scanTypes.hpp:67
float sweep_angle_min
Definition: tilt_scanTypes.hpp:33
Mode
Definition: tilt_scanTypes.hpp:21
Definition: tilt_scanTypes.hpp:23
Definition: tilt_scanTypes.hpp:58
bool isNextSweep(SweepStatus lastState)
Definition: tilt_scanTypes.hpp:78
std::string sweep_servo_name
Definition: tilt_scanTypes.hpp:45
SweepStatus()
Definition: tilt_scanTypes.hpp:53
Definition: tilt_scanTypes.hpp:59