add initial examples, replacing the 'Demos/Demos3'. Will make it work cross-platform, OpenGL3/OpenGL2 and add more examples to it.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#include "urdf_parser/urdf_parser.h"
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char** argv){
|
||||
while (true){
|
||||
std::string xml_string;
|
||||
std::fstream xml_file(argv[1], std::fstream::in);
|
||||
while ( xml_file.good() )
|
||||
{
|
||||
std::string line;
|
||||
std::getline( xml_file, line);
|
||||
xml_string += (line + "\n");
|
||||
}
|
||||
xml_file.close();
|
||||
|
||||
|
||||
urdf::parseURDF(xml_string);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user