No such file or directory: urdf/01-myfirst.urdf
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
Asked by kedarnath on 2023-04-16 05:01:34 UTC
Answers
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
Asked by Zach Yamaoka on 2023-05-08 13:13:16 UTC
Comments
thanks a lot!!
Asked by kedarnath on 2023-05-09 04:41:11 UTC
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.
Asked by Andromeda on 2023-05-12 04:02:39 UTC
Comments
This appears to be a duplicate of #q141466.
Asked by gvdhoorn on 2023-05-09 07:36:49 UTC