File: memtest.cpp

package info (click to toggle)
urdfdom 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 672 kB
  • ctags: 289
  • sloc: cpp: 1,991; python: 938; sh: 35; makefile: 9
file content (20 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
  }
}