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

Revision history [back]

click to hide/show revision 1
initial version
rosuser:~$ roslaunch urdf_tutorial display.launch model:=urdf/01-myfirst.urdf
[..]
IOError: [Errno 2] No such file or directory: u'urdf/01-myfirst.urdf'

according to this, you are invoking roslaunch from your home directory (~). As the tutorial explains:

This launch file assumes that 01-myfirst.urdf is in the urdf subdirectory of the directory that you type the command in.

While the wording could be a bit better, it essentially tells you that you can only give display.launch a relative path to 01-myfirst.urdf if you are actually in a directory that is the direct parent of the urdf directory.

Your home directory is not the direct parent of the /opt/ros/indigo/share/urdf_tutorial/urdf directory, hence the error.

Either do a roscd urdf_tutorial before trying to launch display.launch or use the alternative way to launch it:

Otherwise, you should say model:='$(find pkg-name)/urdf/01-myfirst.urdf' where pkg-name is the name of the package that the file is in (single quotes required)

This form should work no matter what your current working directory is.

rosuser:~$ roslaunch urdf_tutorial display.launch model:=urdf/01-myfirst.urdf
[..]
IOError: [Errno 2] No such file or directory: u'urdf/01-myfirst.urdf'

according to this, you are invoking roslaunch from your home directory (~). As the tutorial explains:

This launch file assumes that 01-myfirst.urdf is in the urdf subdirectory of the directory that you type the command in.

While the wording could be a bit better, it essentially tells you that you can only give display.launch a relative path to 01-myfirst.urdf if you are actually in a directory that is the direct parent of the urdf directory.

Your home directory is not the direct parent of the /opt/ros/indigo/share/urdf_tutorial/urdf directory, hence the error.

Either do a roscd urdf_tutorial before trying to launch display.launch or use the alternative way to launch it:it (change pkg-name to urdf_tutorial):

Otherwise, you should say model:='$(find pkg-name)/urdf/01-myfirst.urdf' where pkg-name is the name of the package that the file is in (single quotes required)

This form should work no matter what your current working directory is.

rosuser:~$ roslaunch urdf_tutorial display.launch model:=urdf/01-myfirst.urdf
[..]
IOError: [Errno 2] No such file or directory: u'urdf/01-myfirst.urdf'

according to this, you are invoking roslaunch from your home directory (~). As the tutorial explains:

This launch file assumes that 01-myfirst.urdf is in the urdf subdirectory of the directory that you type the command in.

While the wording could be a bit better, it essentially tells you that you can only give display.launch a relative path to 01-myfirst.urdf if you are actually in a directory that is the direct parent of the urdf directory.

Your home directory is not the direct parent of the /opt/ros/indigo/share/urdf_tutorial/urdf directory, hence the error.

Either do a roscd urdf_tutorial before trying to launch display.launch or use the alternative way to launch it (change pkg-name to urdf_tutorial):

Otherwise, you should say model:='$(find pkg-name)/urdf/01-myfirst.urdf' where pkg-name is the name of the package that the file is in (single quotes required)

This form should work no matter what your current working directory is.


edit: I've changed the wording of the quoted section of the tutorial to be more clear about relative vs absolute paths to files in the urdf_tutorial package.