emc_system
data.h
Go to the documentation of this file.
1 #ifndef EMC_SYSTEM_DATA_H_
2 #define EMC_SYSTEM_DATA_H_
3 
4 #include <vector>
5 #include <string>
6 
7 namespace emc
8 {
9 
10 class Communication;
11 
12 // ----------------------------------------------------------------------------------------------------
13 
14 struct LaserData
15 {
16  double range_min;
17  double range_max;
18  double angle_min;
19  double angle_max;
21  double timestamp;
23 };
24 
26 {
27  double x;
28  double y;
29  double th;
30  double timestamp;
31 };
32 
33 // ----------------------------------------------------------------------------------------------------
34 
36 {
37 
38 public:
39 
40  void raiseEvent(const char* event)
41  {
42  event_ = event;
43  }
44 
45  bool running() const;
46 
47  const std::string& event() const { return event_; }
48 
49 private:
50 
52 
53 };
54 
55 } // end namespace emc
56 
57 #endif
emc::LaserData::angle_increment
double angle_increment
Definition: data.h:20
emc::FSMInterface::event
const std::string & event() const
Definition: data.h:47
std::string
emc::FSMInterface
Definition: data.h:35
vector
emc::LaserData::angle_min
double angle_min
Definition: data.h:18
emc::LaserData::timestamp
double timestamp
Definition: data.h:21
emc::FSMInterface::raiseEvent
void raiseEvent(const char *event)
Definition: data.h:40
emc::LaserData::angle_max
double angle_max
Definition: data.h:19
emc::LaserData
Definition: data.h:14
emc::ControlEffort
Definition: data.h:25
emc::ControlEffort::y
double y
Definition: data.h:28
emc::LaserData::range_max
double range_max
Definition: data.h:17
emc::ControlEffort::th
double th
Definition: data.h:29
emc::LaserData::range_min
double range_min
Definition: data.h:16
emc::ControlEffort::x
double x
Definition: data.h:27
emc::FSMInterface::event_
std::string event_
Definition: data.h:51
emc
Definition: bumper.h:4
emc::ControlEffort::timestamp
double timestamp
Definition: data.h:30
emc::LaserData::ranges
std::vector< float > ranges
Definition: data.h:22
emc::FSMInterface::running
bool running() const
Definition: data.cpp:8
string