How to read a urdf in python in Indigo?
http://wiki.ros.org/urdf_parser_py doesn't answer the question because it ends with Fuerte, I believe because the functionality was moved into urdfdom, but there isn't much documentation at http://wiki.ros.org/urdfdom .
Trying to run the Fuerte example with loading from the parameter server produces an error:
Traceback (most recent call last):
File "./parse_model.py", line 11, in <module>
roslib.load_manifest('urdf_parser_py')
File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 62, in load_manifest
sys.path = _generate_python_path(package_name, _rospack) + sys.path
File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 93, in _generate_python_path
m = rospack.get_manifest(pkg)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 159, in get_manifest
return self._load_manifest(name)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 198, in _load_manifest
retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name, rospack=self)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 190, in get_path
raise ResourceNotFound(name, ros_paths=self._ros_paths)
rospkg.common.ResourceNotFound: urdf_parser_py
ROS path [0]=/opt/ros/indigo/share/ros
ROS path [1]=/home/lucasw/catkin_ws/src
ROS path [2]=/opt/ros/indigo/share
ROS path [3]=/opt/ros/indigo/stacks
Commenting out the load manifest then produces:
AttributeError: type object 'Robot' has no attribute 'load_from_parameter_server'