ResourceNotFound: [lbr_iiwa_moveit_config] error with MoveIt package
Hi,
I'm working on the ROS-Industrial tutorials and am stuck at exercise 3.4. I get the above error when I try to use roslaunch on a launch file created with the MoveIt assistant. The command is:
roslaunch lbr_iiwa_moveit_cfg moveit_planning_execution.launch
The code at which the error occurs is:
<include file="$(find lbr_iiwa_moveit_config)/launch/kuka_lbr_iiwa_14_r820_moveit_controller_manager.launch.xml" />
This line of code is in the trajectory_execution.launch.xml file- one of many created by the MoveIt assistant.Rest of the file:
<launch>
<!-- This file makes it easy to include the settings for trajectory execution -->
<!-- Flag indicating whether MoveIt! is allowed to load/unload or switch controllers -->
<arg name="moveit_manage_controllers" default="true"/>
<param name="moveit_manage_controllers" value="$(arg moveit_manage_controllers)"/>
<!-- When determining the expected duration of a trajectory, this multiplicative factor is applied to get the allowed duration of execution -->
<param name="allowed_execution_duration_scaling" value="1.2"/> <!-- default 1.2 -->
<!-- Allow more than the expected execution time before triggering a trajectory cancel (applied after scaling) -->
<param name="allowed_goal_duration_margin" value="0.5"/> <!-- default 0.5 -->
<!-- Load the robot specific controller manager; this sets the moveit_controller_manager ROS parameter -->
<!-- <arg name="moveit_controller_manager" default="kuka_lbr_iiwa_14_r820" /> -->
<include file="$(find lbr_iiwa_moveit_config)/launch/kuka_lbr_iiwa_14_r820_moveit_controller_manager.launch.xml" />
</launch>
The peculiar thing is the error only occurs on this particular line even though other launch files in the same package also use the same find command to find the package successfully. The stack printout is:
logging to /home/work/.ros/log/eaeb32e4-dcdf-11e5-8e93-000c29a38561/roslaunch-ubuntu-42341.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
Traceback (most recent call last):
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/__init__.py", line 307, in main
p.start()
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/parent.py", line 268, in start
self._start_infrastructure()
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/parent.py", line 217, in _start_infrastructure
self._load_config()
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/parent.py", line 132, in _load_config
roslaunch_strs=self.roslaunch_strs, verbose=self.verbose)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/config.py", line 451, in load_config_default
loader.load(f, config, verbose=verbose)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 730, in load
self._load_launch(launch, ros_config, is_core=core, filename=filename, argv=argv, verbose=verbose)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 702, in _load_launch
self._recurse_load(ros_config, launch.childNodes, self.root_context, None, is_core, verbose)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 666, in _recurse_load
val = self._include_tag(tag, context, ros_config, default_machine, is_core, verbose)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 95, in call
return f(*args, **kwds)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 609, in _include_tag
default_machine, is_core, verbose)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 666, in _recurse_load
val = self._include_tag(tag, context, ros_config, default_machine, is_core, verbose)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 95, in call
return f(*args, **kwds)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 609, in _include_tag
default_machine, is_core, verbose)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 666, in _recurse_load
val = self._include_tag(tag, context, ros_config, default_machine, is_core, verbose)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 95, in call
return f(*args, **kwds)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 609, in _include_tag
default_machine, is_core, verbose)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 662, in _recurse_load
self._rosparam_tag(tag, context, ros_config, verbose=verbose)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 95, in call
return f(*args, **kwds)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 228, in _rosparam_tag
cmd, ns, file, param, subst_value = self.opt_attrs(tag, context, (XmlLoader.ROSPARAM_OPT_ATTRS))
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 202, in opt_attrs
return [self.resolve_args(tag_value(tag,a), context) for a in attrs]
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 183, in resolve_args
return substitution_args.resolve_args(args, context=context.resolve_dict, resolve_anon=self.resolve_anon)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 312, in resolve_args
resolved = _resolve_args(resolved, context, resolve_anon, commands)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 325, in _resolve_args
resolved = commands[command](resolved, a, args, context)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 141, in _find
source_path_to_packages=source_path_to_packages)
File "/opt/ros/jade/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 184, in _find_executable
full_path = _get_executable_path(rp.get_path(args[0]), path)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 200, in get_path
raise ResourceNotFound(name, ros_paths=self._ros_paths)
ResourceNotFound: [lbr_iiwa_moveit_config]
ROS path [0]=/opt/ros/jade/share/ros
ROS path [1]=/home/work/ros_industrial_training/training/work/3.4/src
ROS path [2]=/home/work/ros_industrial_training/training/supplements/src
ROS path [3]=/home/work/ros_ws/src
ROS path [4]=/opt/ros/jade/share
ROS path [5]=/opt/ros/jade/stacks
I'm using Ubuntu 14.04 with ROS Jade. I've compiled ROS-Industrial and MoveIt manually from source but there dependencies were installed through apt-get. I've been through the previous exercises without issues. In my bash sources I have:
source /opt/ros/jade/setup.bash
source ~/ros_ws/devel/setup.bash <- catkin_ws with ROS-Industrial and MoveIt
source /home/work/ros_industrial_training/training/.training_units.bash --extend <- used for ROS-I exercises
Any help would be appreciated thanks.
Asked by atoz on 2016-02-26 19:17:37 UTC
Comments
Is this with the IIWA support package from the kuka_experimental repository, or a custom one?
Asked by gvdhoorn on 2016-02-27 04:48:38 UTC
And obviously: what does
rospack find lbr_iiwa_moveit_config
return? Don't type it, copy the exact package name from either the error message, or from theinclude
line in the failinglaunch
file.Asked by gvdhoorn on 2016-02-27 04:51:09 UTC
Yes this is the IIWA package from the kuka_experimental repository. The rospack command works fine- returns:
As I said, the error only occurs at a single location. Other instances of find work fine
Asked by atoz on 2016-02-27 06:28:54 UTC
If you can make your
lbr_iiwa_moveit_config
package available (through github fi) I'm willing to take a look. Otherwise it'll probably be hard to diagnose.Asked by gvdhoorn on 2016-02-27 06:50:26 UTC
It's available at: https://github.com/m-talha/lbr_iiwa_config
There is a folder missing :
default_warehouse_mongo_db
- the files are too big to upload. Don't look critical thoughAsked by atoz on 2016-02-27 09:32:31 UTC