Go to the documentation of this file.00001 #include "urdf_parser/urdf_parser.h"
00002 #include <ros/ros.h>
00003 #include <fstream>
00004 #include <iostream>
00005
00006 int main(int argc, char** argv){
00007 ros::init(argc, argv, "memtest");
00008 while (ros::ok()){
00009 std::string xml_string;
00010 std::fstream xml_file(argv[1], std::fstream::in);
00011 while ( xml_file.good() )
00012 {
00013 std::string line;
00014 std::getline( xml_file, line);
00015 xml_string += (line + "\n");
00016 }
00017 xml_file.close();
00018
00019
00020 urdf::parseURDF(xml_string);
00021 }
00022 }