viewer.cpp
Go to the documentation of this file.
00001 
00019 #include <urdf2graspit/MarkerSelector.h>
00020 #include <string>
00021 
00022 using urdf2graspit::markerselector::MarkerSelector;
00023 
00024 int main(int argc, char *argv[])
00025 {
00026     if (argc < 3)
00027     {
00028         std::cout << "Usage: " << argv[0] << " <input-file>.iv  <output_file>" << std::endl;
00029         return 1;
00030     }
00031 
00032     std::string inputFile = argv[1];
00033     std::string outputFile = argv[2];
00034 
00035     bool facesCCW=true;
00036     MarkerSelector m(0.02,facesCCW);
00037     m.init("WindowName");
00038     if (!m.loadModel(inputFile)) return 1;
00039     m.runViewer();
00040     if (!m.writeResults(outputFile)) return 1;
00041 
00042     return 0;
00043 }
00044 
00045 


urdf2graspit
Author(s): Jennifer Buehler
autogenerated on Wed May 8 2019 02:53:45