#此宏触发从模拟的2D相机拍摄快照#从robolink导入* # API与RoboDK从RoboDK导入通信* #基本矩阵操作RDK = robolink () import datetime datetime.datetime.now().strftime("%Y-%m-%d-%H-% m-% S") file_name = RDK. getparam ('PATH_OPENSTATION') + "/Image_" + date_str + ".png" print("Saving camera snapshot to the file:" + file_name) RDK. cam2d_snapshot (file_name)