-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocalize.cpp
More file actions
44 lines (38 loc) · 889 Bytes
/
Copy pathlocalize.cpp
File metadata and controls
44 lines (38 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <ros/ros.h>
#include "vlog.h"
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char** argv)
{
ros::init(argc, argv, "localize");
ros::NodeHandle nh;
TopicNames tn;
ConfigSettings cs;
//cs.f = 374.6706070969281;
// tn.inBottomImage = "/ardrone/bottom/image_raw";
tn.inBottomImage = "/image";
// tn.inFrontImage = "/ardrone/front/image_raw";
// tn.inBottomInfo = "/ground_truth/state";
// tn.inFrontInfo = "/ardrone/front/camera_info";
cs.outFileName = argv[1];
if (!strcmp (argv[2],"front")){
cs.useFrontImage=true;
cout << "Front Image\n";
}
else{
cs.useFrontImage=false;
cout << "Bottom Image\n";
}
if (!strcmp(argv[3],"debug")){
cs.debug=true;
cout << "Debug true\n";
}
else{
cs.debug=false;
cout << "Debug false\n";
}
vlog s2o(nh, tn, cs);
ros::spin();
return 0;
}