Hi Ugo,<br><br>I believe that that launch file has just not been edited to reflect the new distribution set up.  It loads the paths for the PR2 gazebo resources for every empty world even though it is meant to be generic.  <br>
<br>So, you can edit out the paths of resources that you dont have with the standard distribution.  Take out pr2_ogre, pr2_description, and pr2_gazebo_plugins.  <br><br>For example change GAZEBO_RESOURCE_PATH to:<br><br>    <env name="GAZEBO_RESOURCE_PATH" value="$(find gazebo_worlds):$(find gazebo)/gazebo/share/gazebo" /><br>
<br>I have a similar modified launch file setting up my own simulation.  <br><br>Regards,<br>Adam Stambler<br><br><div class="gmail_quote">On Mon, Mar 29, 2010 at 8:24 AM, Ugo Cupcic <span dir="ltr"><<a href="mailto:ugo@shadowrobot.com">ugo@shadowrobot.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br>
<br>
Do I need to install pr2_gazebo to use the command:<br>
roslaunch gazebo_worlds empty_world.launch ? Even if I won't use the PR2<br>
robot?<br>
<br>
I just installed gazebo_tools and gazebo_worlds but I get an error when<br>
I try to start empty_world. (see below)<br>
<br>
Cheers,<br>
<br>
Ugo<br>
<br>
<br>
<br>
Traceback (most recent call last):<br>
   File "/home/hand/ros/ros/tools/roslaunch/src/roslaunch/__init__.py",<br>
line 198, in main<br>
     p.start()<br>
   File "/home/hand/ros/ros/tools/roslaunch/src/roslaunch/parent.py",<br>
line 217, in start<br>
     self._start_infrastructure()<br>
   File "/home/hand/ros/ros/tools/roslaunch/src/roslaunch/parent.py",<br>
line 180, in _start_infrastructure<br>
     self._load_config()<br>
   File "/home/hand/ros/ros/tools/roslaunch/src/roslaunch/parent.py",<br>
line 106, in _load_config<br>
     self.config =<br>
roslaunch.config.load_config_default(self.roslaunch_files, self.port)<br>
   File "/home/hand/ros/ros/tools/roslaunch/src/roslaunch/config.py",<br>
line 371, in load_config_default<br>
     loader.load(f, config, verbose=verbose)<br>
   File "/home/hand/ros/ros/tools/roslaunch/src/roslaunch/xmlloader.py",<br>
line 662, in load<br>
     self._load_launch(launch, ros_config, is_core=core,<br>
filename=filename, verbose=verbose)<br>
   File "/home/hand/ros/ros/tools/roslaunch/src/roslaunch/xmlloader.py",<br>
line 637, in _load_launch<br>
     self._recurse_load(ros_config, launch.childNodes,<br>
self.root_context, None, is_core, verbose)<br>
   File "/home/hand/ros/ros/tools/roslaunch/src/roslaunch/xmlloader.py",<br>
line 590, in _recurse_load<br>
     n = self._node_tag(tag, context.child(''), ros_config,<br>
default_machine, verbose=verbose)<br>
   File "/home/hand/ros/ros/tools/roslaunch/src/roslaunch/xmlloader.py",<br>
line 359, in _node_tag<br>
     self._env_tag(t, context, ros_config)<br>
   File "/home/hand/ros/ros/tools/roslaunch/src/roslaunch/xmlloader.py",<br>
line 502, in _env_tag<br>
     self.load_env(context, ros_config, *self.reqd_attrs(tag, context,<br>
XmlLoader.ENV_ATTRS))<br>
   File "/home/hand/ros/ros/tools/roslaunch/src/roslaunch/xmlloader.py",<br>
line 175, in reqd_attrs<br>
     return [self.resolve_args(tag.attributes[a].value, context) for a<br>
in attrs]<br>
   File "/home/hand/ros/ros/tools/roslaunch/src/roslaunch/xmlloader.py",<br>
line 146, in resolve_args<br>
     return roslib.substitution_args.resolve_args(args,<br>
context=context.resolve_dict, resolve_anon=self.resolve_anon)<br>
   File<br>
"/home/hand/ros/ros/core/roslib/src/roslib/substitution_args.py", line<br>
105, in resolve_args<br>
     resolved = resolved[0:idx-len(arg)] +<br>
roslib.packages.get_pkg_dir(args[0]) + resolved[idx:]<br>
   File "/home/hand/ros/ros/core/roslib/src/roslib/packages.py", line<br>
213, in get_pkg_dir<br>
     raise InvalidROSPkgException("Cannot locate installation of package<br>
%s: %s. ROS_ROOT[%s] ROS_PACKAGE_PATH[%s]"%(package, rperr.strip(),<br>
ros_root, ros_package_path))<br>
InvalidROSPkgException: Cannot locate installation of package<br>
pr2_gazebo_plugins: [rospack] couldn't find package<br>
[pr2_gazebo_plugins]. ROS_ROOT[/home/hand/ros/ros]<br>
ROS_PACKAGE_PATH[/home/hand/ros/stacks:/home/hand/Projects/Projects/ROS_can_interface/shadowhand]<br>
<br>
<br>
<br>
--<br>
Ugo Cupcic         |  Shadow Robot Company | <a href="mailto:ugo@shadowrobot.com">ugo@shadowrobot.com</a><br>
Software Engineer      251 Liverpool Road<br>
need a Hand?           London  N1 1LX       | +44 20 7700 2487<br>
<a href="http://www.shadowrobot.com/hand/" target="_blank">http://www.shadowrobot.com/hand/</a>              @shadowrobot<br>
<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</blockquote></div><br>