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

No Visual Robot Model with URDF

asked 2014-02-07 20:57:48 -0500

M Samir gravatar image

updated 2016-10-24 08:35:50 -0500

ngrennan gravatar image

when i write in terminal

roslaunch urdf_tutorial display.launch model:=urdf/02-multipleshapes.urdf

result

IOError: [Errno 2] No such file or directory: u'urdf/02-multipleshapes.urdf'

And no RViz display ,so and no robot i use groovy please i need help

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-02-09 21:17:30 -0500

gvdhoorn gravatar image

The model parameter takes either an absolute or relative path. For a relative path, you have to make sure that it is reachable from the current working directory. So before you run the above command, you have to be in the urdf_tutorial directory already, as the urdf directory is a subdirectory of urdf_tutorial.

To use a relative path:

roscd urdf_tutorial
roslaunch urdf_tutorial display.launch model:=urdf/02-multipleshapes.urdf

Or, you could do this, which works from any directory:

roslaunch urdf_tutorial display.launch model:=`rospack find urdf_tutorial`/urdf/02-multipleshapes.urdf

rospack find PKG_NAME will first try to find the package you gave it, and then returns the absolute path to that package. As you now have an absolute path to the urdf, this works regardless of what is your current working directory.

edit flag offensive delete link more
0

answered 2014-02-07 21:19:23 -0500

Bahman SHAMS gravatar image

hi! you should write in terminal "roslaunch urdf_tutorial display.launch model:=02-multipleshapes.urdf" . because urdf files are in location. :D

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2014-02-07 20:57:48 -0500

Seen: 655 times

Last updated: Feb 09 '14