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

No such file or directory: urdf/01-myfirst.urdf

asked 2023-04-16 05:02:27 -0500

kedarnath gravatar image

No such file or directory: urdf/01-myfirst.urdf [Errno 2] No such file or directory: 'urdf/01-myfirst.urdf' RLException: Invalid tag: Cannot load command parameter [robot_description]: command [['/opt/ros/noetic/lib/xacro/xacro', 'urdf/01-myfirst.urdf']] returned with code [2].

Param xml is The traceback for the exception was written to the log file

I AM TRYING TO to launch this:

$ roslaunch urdf_tutorial display.launch model:=urdf/01-myfirst.urdf

edit retag flag offensive close merge delete

Comments

This appears to be a duplicate of #q141466.

gvdhoorn gravatar image gvdhoorn  ( 2023-05-09 07:36:49 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-08 13:13:16 -0500

I solved this by switching the directory I was in when I ran the command.

When I ran it from: /opt/ros/noetic/share/urdf_tutorial/urdf

I got the error you got.

When I ran it from: /opt/ros/noetic/share/urdf_tutorial

it worked

edit flag offensive delete link more

Comments

thanks a lot!!

kedarnath gravatar image kedarnath  ( 2023-05-09 04:41:11 -0500 )edit
1

It is not a good idea to run it from that folder. Please note that the argument passed to the model is the path to your file. So you can just type the following:

$roslaunch urdf_tutorial display.launch model:=/my/path/to/my/package/file.urdf

So you do not need to launch that file from that folder.

Andromeda gravatar image Andromeda  ( 2023-05-12 04:02:39 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2023-04-16 05:01:34 -0500

Seen: 496 times

Last updated: May 08 '23