Go to the documentation of this file.00001 #include <urdf/model.h>
00002 #include "ros/ros.h"
00003
00004 int main(int argc, char** argv){
00005 ros::init(argc, argv, "my_parser");
00006 if (argc != 2){
00007 ROS_ERROR("Need a urdf file as argument");
00008 return -1;
00009 }
00010 std::string urdf_file = argv[1];
00011
00012 urdf::Model model;
00013 if (!model.initFile(urdf_file)){
00014 ROS_ERROR("Failed to parse urdf file");
00015 return -1;
00016 }
00017 ROS_INFO("Successfully parsed urdf file");
00018 return 0;
00019 }