#include #include "lidarmain.h" #include "ivdriver_lidar_rs16.h" extern char gstr_memname[256]; extern char gstr_rollang[256]; extern char gstr_inclinationang_yaxis[256]; //from y axis extern char gstr_inclinationang_xaxis[256]; //from x axis extern char gstr_hostip[256]; extern char gstr_port[256]; extern char gstr_yaml[256]; int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); snprintf(gstr_memname,255,"lidar_pc"); snprintf(gstr_rollang,255,"-9.0"); snprintf(gstr_inclinationang_xaxis,255,"0.0"); snprintf(gstr_inclinationang_yaxis,255,"0"); snprintf(gstr_hostip,255,"0.0.0.0"); snprintf(gstr_port,255,"6699");//默认端口号 snprintf(gstr_yaml,255,""); iv::ivdriver_lidar * pivm = new iv::ivdriver_lidar_rs16(); int nrtn = lidarmain(pivm,argc,argv,&a,"driver_lidar_rs16"); if(nrtn == 0) { return 0; } return a.exec(); }