SLAMflex SE  0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
System.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Copyright 2008 Isis Innovation Limited
3 //
4 // System.h
5 //
6 // Defines the System class
7 //
8 // This stores the main functional classes of the system, like the
9 // mapmaker, map, tracker etc, and spawns the working threads.
10 //
11 #ifndef __SYSTEM_H
12 #define __SYSTEM_H
13 
14 #include "image.h"
15 #include "rgb.h"
16 #include "byte.h"
17 #include "globals.h"
18 #include <vector>
19 #include "SendMessage.h"
20 #include "SLAMflex.h"
21 
22 
23 class ATANCamera;
24 class Map;
25 class MapMaker;
26 class Tracker;
27 class System
28 {
29 public:
30  System();
31  void RunOneFrame(unsigned char *bwImage,uint hnd);
32  bool Finished() {return mbDone;};
33 
34  void SendTrackerStartSig();
35  void SendTrackerKillSig();
36  std::vector<float> getCurrentPose();
37  std::string getVCorners();
40 
41 
42 private:
44 
49 
50  bool mbDone;
51 
52  static void GUICommandCallBack(void* ptr, std::string sCommand, std::string sParams);
53 
54 };
55 
56 
57 
58 #endif
Tracker * mpTracker
Definition: System.h:47
void SendTrackerStartSig()
Definition: System.cpp:48
static void GUICommandCallBack(void *ptr, std::string sCommand, std::string sParams)
Definition: System.cpp:74
void RunOneFrame(unsigned char *bwImage, uint hnd)
Definition: System.cpp:63
CVD::Image< CVD::byte > mimFrameBW
Definition: System.h:43
ATANCamera * mpCamera
Definition: System.h:48
std::string getVCorners()
Definition: System.cpp:80
unsigned char * bwImage
Black and white image.
Definition: SLAMflex.cpp:22
Definition: Map.h:24
bool Finished()
Definition: System.h:32
bool mbDone
Definition: System.h:50
void SendTrackerKillSig()
Definition: System.cpp:53
Map * mpMap
Definition: System.h:45
void SetSendMessageToUnity(SendMessage sm)
Definition: System.cpp:42
System()
Definition: System.cpp:32
std::vector< float > getCurrentPose()
Definition: System.cpp:14
DetectionState GetCurrentDetectionState()
Definition: System.cpp:58
DetectionState
Enum for state of SLAM detection process.
Definition: SLAMflex.h:11
MapMaker * mpMapMaker
Definition: System.h:46