16 SE3<> se3pose=mpTracker->GetCurrentPose();
17 vector<float> pose(7);
22 pose[0]=translation[0];
23 pose[1]=translation[1];
24 pose[2]=translation[2];
25 pose[3]=
norm(rotation)/3.14159*360.0;
26 pose[4]=rotation[0]/pose[3];
27 pose[5]=rotation[1]/pose[3];
28 pose[6]=rotation[2]/pose[3];
36 mpMapMaker =
new MapMaker(*mpMap, *mpCamera);
37 mpTracker =
new Tracker(
ImageRef(640,480), *mpCamera, *mpMap, *mpMapMaker);
38 mimFrameBW.resize(
ImageRef(640,480));
44 mpTracker->SetSendMessageToUnity(sm);
45 mpMapMaker->SetSendMessageToUnity(sm);
50 mpTracker->StartTracking();
55 mpTracker->StopTracking();
60 mpTracker->GetCurrentDetectionState();
68 mpTracker->TrackFrame(mimFrameBW, hnd,0);
70 string s=mpTracker->GetMessageForUser();
76 if(sCommand==
"quit" || sCommand ==
"exit")
77 static_cast<System*
>(ptr)->mbDone =
true;
82 return mpTracker->getVCorners();
SO3< Precision > & get_rotation()
Returns the rotation part of the transformation as a SO3.
void SendTrackerStartSig()
static void GUICommandCallBack(void *ptr, std::string sCommand, std::string sParams)
void RunOneFrame(unsigned char *bwImage, uint hnd)
Precision norm(const Vector< Size, Precision, Base > &v)
std::string getVCorners()
unsigned char * bwImage
Black and white image.
Vector< 3, Precision > & get_translation()
Returns the translation part of the transformation as a Vector.
void SendTrackerKillSig()
void SetSendMessageToUnity(SendMessage sm)
std::vector< float > getCurrentPose()
DetectionState GetCurrentDetectionState()
DetectionState
Enum for state of SLAM detection process.