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

roslaunch error IOError: [Errno 2] No such file or directory

asked 2019-05-28 09:54:30 -0600

Yangyh gravatar image

updated 2019-05-28 09:58:17 -0600

gvdhoorn gravatar image

I'm trying to run

roslaunch robot1_description display.launch model:="rospack find robot1_description/urdf/robot1.urdf"

and get some errors below:

Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 306, in main
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 268, in start
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 217, in _start_infrastructure
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 132, in _load_config
    roslaunch_strs=self.roslaunch_strs, verbose=self.verbose)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 451, in load_config_default
    loader.load(f, config, verbose=verbose)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 749, in load self._load_launch(launch, ros_config, is_core=core, filename=filename, argv=argv, verbose=verbose)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 721, in _load_launch
    self._recurse_load(ros_config, launch.childNodes, self.root_context, None, is_core, verbose)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 665, in _recurse_load
    self._param_tag(tag, context, ros_config, verbose=verbose)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 95, in call
    return f(*args, **kwds)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 265, in _param_tag
    value = self.param_value(verbose, name, ptype, *vals)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 472, in param_value
    with open(textfile, 'r') as f:
IOError: [Errno 2] No such file or directory: u'rospack find robot1_description/urdf/robot1.urdf'
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-05-28 09:59:04 -0600

gvdhoorn gravatar image
roslaunch robot1_description display.launch model:="rospack find robot1_description/urdf/robot1.urdf"

You need to use backticks, not regular quotes. This is bash, not roslaunch.

The correct command would be:

roslaunch robot1_description display.launch model:="`rospack find robot1_description`/urdf/robot1.urdf"
edit flag offensive delete link more


thank you for all the help me to sovle my problem. thank you! Can I contact you later?

Yangyh gravatar image Yangyh  ( 2019-05-28 10:07:39 -0600 )edit

Question Tools

1 follower


Asked: 2019-05-28 09:54:30 -0600

Seen: 1,720 times

Last updated: May 28 '19