main.cpp 936 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include <QCoreApplication>
  2. #include "lidarmain.h"
  3. #include "ivdriver_lidar_rs32.h"
  4. extern char gstr_memname[256];
  5. extern char gstr_rollang[256];
  6. extern char gstr_inclinationang_yaxis[256]; //from y axis
  7. extern char gstr_inclinationang_xaxis[256]; //from x axis
  8. extern char gstr_hostip[256];
  9. extern char gstr_port[256];
  10. extern char gstr_yaml[256];
  11. int main(int argc, char *argv[])
  12. {
  13. QCoreApplication a(argc, argv);
  14. snprintf(gstr_memname,255,"lidar_pc");
  15. snprintf(gstr_rollang,255,"-9.0");
  16. snprintf(gstr_inclinationang_xaxis,255,"0.0");
  17. snprintf(gstr_inclinationang_yaxis,255,"0");
  18. snprintf(gstr_hostip,255,"0.0.0.0");
  19. snprintf(gstr_port,255,"6699");//默认端口号
  20. snprintf(gstr_yaml,255,"");
  21. iv::ivdriver_lidar * pivm = new iv::ivdriver_lidar_rs32();
  22. int nrtn = lidarmain(pivm,argc,argv,&a,"driver_lidar_rs32");
  23. if(nrtn == 0)
  24. {
  25. return 0;
  26. }
  27. return a.exec();
  28. }