Skip to content

Commit ec489f1

Browse files
committed
#14 update data.py
1 parent a3b85f4 commit ec489f1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

python/main.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ def image_callback(msg_bytes, size):
2020
print(f"Received image data of size {size}")
2121

2222
def main():
23-
print("启动 SimpleSensorSync 同步器...")
24-
2523
synchronizer = Synchronizer()
2624

27-
synchronizer.set_net_link("192.168.1.188", 8888)
25+
synchronizer.set_net_link("192.168.192.188", 8888)
2826

2927
sensor = DemoSensor()
3028

@@ -35,17 +33,13 @@ def main():
3533
messenger = Messenger.get_instance()
3634
messenger.sub("imu_1", imu_callback)
3735
messenger.sub("cam_1", image_callback)
38-
39-
print("同步器正在运行,按 Ctrl+C 退出...")
40-
4136
try:
4237
while True:
4338
time.sleep(0.1)
4439
except KeyboardInterrupt:
4540
print("\n检测到键盘中断,正在停止同步器...")
4641

4742
synchronizer.stop()
48-
print("同步器已停止")
4943

5044
if __name__ == "__main__":
5145
main()

0 commit comments

Comments
 (0)