Hi, I am trying to retrieve the mesh file names/paths from the robot URDF description. I seem to be able to get all of the other information (link name, mesh origin, parent/child link names, etc.).
Here is my code:
urdf::Model urdfModel;
if (!urdfModel.initParam("robot_description")) {
ROS_ERROR("Error parsing URDF file...");
return false;
}
string lnk_name = "/r2/left_palm";
boost::shared_ptr<urdf::Link> lnk;
urdfModel.getLink(lnk_name, lnk);
cout << "what is the type of model: " << viz->geometry->type << endl;
cout << viz->origin.position.x << endl;
cout << viz->origin.position.y << endl;
cout << viz->origin.position.z << endl;
That all works great, but I can't for the life of me figure out where the meshname is stored....
Thanks!
Originally posted by shart115 on ROS Answers with karma: 86 on 2012-09-14
Post score: 0