Ask Your Question
4

lauch problems; ResourceNotFound

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

Astronaut gravatar image

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

mjcarroll gravatar image

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

  File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/__init__.py", line 257, in main
    p.start()

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/parent.py", line 257, in start
    self._start_infrastructure()

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/parent.py", line 206, in _start_infrastructure
    self._load_config()

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/parent.py", 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/config.py", line 421, in load_config_default
    loader.load(f, config, verbose=verbose)

 File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/xmlloader.py", 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/xmlloader.py", 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/xmlloader.py", 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/xmlloader.py", line 95, in call
    return f(*args, **kwds)

File "/opt/ros/fuerte/lib/python2.6/dist-packages/roslaunch/xmlloader.py", 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/xmlloader.py", 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/xmlloader.py", 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/substitution_args.py", line 203, in resolve_args
    resolved = _find(resolved, a, args, context)

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

File "/usr/lib/pymodules/python2.6/rospkg/rospack.py", 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 ...
(more)
edit retag flag offensive close merge delete

Comments

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 imageAstronaut ( 2012-07-03 04:11:51 -0500 )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 imageAstronaut ( 2012-07-03 04:34:03 -0500 )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 imageAstronaut ( 2012-07-03 04:39:20 -0500 )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 imageAstronaut ( 2012-07-03 04:54:53 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
4

answered 2012-07-03 04:03:07 -0500

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
3

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

KruseT gravatar image

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

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):

/home/bojan/Desktop/PowRos/utils/gps_umd:/home/bojan/Desktop/PowRos/utils/cereal_port:/home/bojan/Desktop/PowRos/utils/lse_xsens_mti:/home/bojan/Desktop/PowRos/utils/scan_tools/csm:/home/bojan/Desktop/PowRos/utils/scan_tools/laser_scan_matcher:/opt/ros/fuerte/stacks:/opt/ros/fuerte/share:/opt/ros/fuerte/share/ros

if that is where you put your stuff.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 16,458 times

Last updated: Jul 03 '12