Skip to content

Commit c3bcf4b

Browse files
committed
Add some notes
1 parent 4539860 commit c3bcf4b

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

example/ZMQ/zmq_main.cpp

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,23 @@
33
using namespace infinite_sense;
44
int main() {
55
Synchronizer synchronizer;
6-
// use net link
7-
// synchronizer.SetNetLink("192.168.1.188", 8888);
8-
// use serial link
9-
synchronizer.SetSerialLink("/dev/ttyACM0",460800);
10-
// use mv camera
11-
// synchronizer.UseMvCam();
6+
/*
7+
synchronizer.SetNetLink("192.168.1.188", 8888);
8+
*/
9+
synchronizer.SetSerialLink("/dev/ttyACM0", 460800);
10+
/*
11+
使用工业相机系列
12+
std::map<std::string, TriggerDevice> params;
13+
params["camera_1"] = TriggerDevice::CAM_1; //camera_1:表示设备的名称,TriggerDevice::CAM_1:使用同步板CAM_1端口触发
14+
synchronizer.UseMvCam(params);
15+
*/
16+
// 开启同步
1217
synchronizer.Start();
1318
Synchronizer::PrintSummary();
1419
while (true) {
1520
std::this_thread::sleep_for(std::chrono::milliseconds{1000});
1621
}
22+
// 停止同步
1723
synchronizer.Stop();
1824
return 0;
1925
}

infinite_sense_core/src/infinite_sense.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "cam.h"
77
#include "messenger.h"
88
#include "log.h"
9-
#include "image.h"
109

1110
namespace infinite_sense {
1211
Synchronizer::Synchronizer() {

0 commit comments

Comments
 (0)