ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

lauch problems; ResourceNotFound

asked 2012-07-03 03:53:42 -0600

Astronaut gravatar image

updated 2012-07-03 12:50:46 -0600

mjcarroll gravatar image

Hello after executing the lauch file i got the following problems:

  File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 257, in main

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 257, in start

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 206, in _start_infrastructure

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 121, in _load_config
    self.config = roslaunch.config.load_config_default(self.roslaunch_files, self.port, verbose=self.verbose)

 File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 421, in load_config_default
    loader.load(f, config, verbose=verbose)

 File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 694, in load
    self._load_launch(launch, ros_config, is_core=core, filename=filename, argv=argv, verbose=verbose)

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 666, in _load_launch
    self._recurse_load(ros_config, launch.childNodes, self.root_context, None, is_core, verbose)

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 601, in _recurse_load
    n = self._node_tag(tag, context.child(''), ros_config, default_machine, verbose=verbose)

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 95, in call
    return f(*args, **kwds)

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 347, in _node_tag
    self.opt_attrs(tag, context, ('machine', 'args', 'output', 'respawn', 'cwd', 'launch-prefix', 'required'))

 File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 178, in opt_attrs
    return [self.resolve_args(tag_value(tag,a), context) for a in attrs]

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 159, in resolve_args
    return substitution_args.resolve_args(args, context=context.resolve_dict, resolve_anon=self.resolve_anon)

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 203, in resolve_args
    resolved = _find(resolved, a, args, context)

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/", line 139, in _find
    return resolved[0:idx-len(arg)] + r.get_path(args[0]) + resolved[idx:]

File "/usr/lib/pymodules/python2.6/rospkg/", line 149, in get_path
    raise ResourceNotFound(name, ros_paths=self._ros_paths)

ResourceNotFound: pow_analyzer

ROS path [0]=/opt/ros/fuerte/share/ros

ROS path [1]=/home/bojan/ros_workspace/gps_common

ROS path [2]=/home/bojan/ros_workspace/lse_xsens_mti

ROS path [3]=/home/bojan/ros_workspace/cereal_port

ROS path [4]=/home/bojan/ros_workspace/scan_tools

ROS path [5]=/home/bojan/ros_workspace/utils

ROS path [6]=/home/bojan/ros_workspace/pow_analyzer

ROS path [7]=/home/bojan/ros_workspace/amcl_listener

ROS path [8]=/home/bojan/Desktop/PowRos/utils/pow_analyze

ROS path [9]=/home/bojan/Desktop/PowRos/utils/amcl_listener

ROS path [10]=/opt/ros/fuerte/stacks

ROS path [11]=/opt/ros/fuerte/share

ROS path [12]=/opt/ros/fuerte/share/ros

ROS path [13]=/home/bojan/Desktop/PowRos/utils/gps_umd

ROS path [14]=/home/bojan/Desktop/PowRos/utils/cereal_port

ROS path [15]=/home/bojan/Desktop/PowRos/utils/lse_xsens_mti

ROS path [16]=/home/bojan/Desktop/PowRos/utils/scan_tools/csm

ROS path [17]=/home/bojan/Desktop/PowRos/utils/scan_tools/laser_scan_matcher

ROS path [18]=/home/bojan ...
edit retag flag offensive close merge delete


roscd pow_analyzer is not working: But I installed and compiled perfectly the package.I had to install 6 packages and done it manually so , every time installed the package i cjanged the path. also rospack find pow_analyzer failed. So every time I installed new package I changed the package path:

Astronaut gravatar image Astronaut  ( 2012-07-03 04:11:51 -0600 )edit

Ok. I solve that but I need like 7 packages for this launch file. So how to install all in same package path? I need the followings packages: amcl_listener, pow_analyzer, gps_common, cereal_port, lse_xsens_mti, csm, laser_scan_matcher. So there are 2 internal and 5 external packages.

Astronaut gravatar image Astronaut  ( 2012-07-03 04:34:03 -0600 )edit

because i got other error:ResourceNotFound: amcl_listener ROS path [0]=/opt/ros/fuerte/share/ros ROS path [1]=/home/bojan/Desktop/PowRos/utils/pow_analyzer So how to create a package path for 7 packages???

Astronaut gravatar image Astronaut  ( 2012-07-03 04:39:20 -0600 )edit

I download all 7 packages from one ftp server and put on one folder my ubuntu Desktop . So I put them on ~/Desktop/PowRos/utils.

Astronaut gravatar image Astronaut  ( 2012-07-03 04:54:53 -0600 )edit

2 Answers

Sort by » oldest newest most voted

answered 2012-07-03 04:03:07 -0600

Lorenz gravatar image

This is not a problem with your launch file but that roslaunch cannot find the package pow_analyzer. Is the package in your ROS_PACKAGE_PATH. You can verify that your ROS environment is set up correctly by either doing a roscd pow_analyzer which must work or by executing:

rospack find pow_analyzer

which must print the path to the package pow_analyzer. If one of the commands fails, pow_analyzer is not in your ROS_PACKAGE_PATH.

edit flag offensive delete link more


I successfully use this command to find my package but the error still exists which confuses me a lot.

ouni@ouni-VirtualBox:~/Code/ugv_ws$ rospack find rslidar_pointcloud

part of my launch file is as follows: <arg name="lidar_param_path" default="$(find rslidar_pointcloud)/data/rs_lidar_16/"/> and the error:

Resource not found: The following package was not found in <arg default="$(find 
rslidar_pointcloud)/data/rs_lidar_16/" name="lidar_param_path"/>: rslid
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/ouni/Code/learning_ros/test_service/src
ROS path [2]=/home/ouni/文档/pcl_test/src文档/pcl_test/src
ROS path [3]=/home/ouni/Code/pcl_test/src
ROS path [4]=/opt/ros/melodic/share
The traceback for the exception was written to the log file

appreciated for your help!

ROSouni gravatar image ROSouni  ( 2021-04-12 22:43:21 -0600 )edit

answered 2012-07-03 05:00:04 -0600

KruseT gravatar image

updated 2012-07-03 06:16:57 -0600

The ROS_PACKAGE_PATH is a variable with many entries, separated by ':'.

You should use the tool rosws to manage such environments. Your ROS_PACKAGE_PATH should be (I guess):


if that is where you put your stuff.

edit flag offensive delete link more


ok solve it. Thanks

Astronaut gravatar image Astronaut  ( 2021-09-25 04:03:50 -0600 )edit

Question Tools


Asked: 2012-07-03 03:53:42 -0600

Seen: 33,083 times

Last updated: Jul 03 '12