| | |
| | | #include <stdio.h> |
| | | #include <iostream> |
| | | #include "Quaternion.h" |
| | | #include "struct.h" |
| | | #include "G4Trk.h" |
| | |
| | | #include <string.h> |
| | | #include <unistd.h> |
| | | #include "config.h" |
| | | #include "clipp.h" |
| | | using namespace clipp; using std::cout; using std::string; |
| | | |
| | | |
| | | int RunCollect=0; |
| | |
| | | |
| | | CG4Trk trk; |
| | | REND_STRUCT rs; |
| | | char* cfgFile; |
| | | string cfgFile; |
| | | string oscSink; |
| | | |
| | | auto cli = ( |
| | | value("c4g configuration file", cfgFile), |
| | | value("osc sink", oscSink) |
| | | ); |
| | | |
| | | if(!parse(argc, argv, cli)) { |
| | | cout << make_man_page(cli, argv[0]); |
| | | return 1; |
| | | } |
| | | memset(rs.viewTrans,0,sizeof(float)*3); |
| | | rs.srcScale=rs.senScale=0.5; |
| | | rs.counter=0; |
| | | |
| | | cfgFile="config.g4c"; |
| | | int resp=trk.Connect(cfgFile); |
| | | int resp=trk.Connect(const_cast<char*>(cfgFile.c_str())); // whaaaaa |
| | | if (!resp){ |
| | | printf("Error Connecting to G4\n"); |
| | | return -1; |