Getting "RLException: [display.launch] is neither a launch file in package [robot1_description] nor is [robot1_description] a launch file name" error
So I am doing a tutorial for rviz and ROS Gazebo. I have a urdf file that I want to run with the following provided command:
roslaunch robot1_description display.launch model:="'rospack find robot1_description'/urdf/robot1.urdf" gui:=true
the urdf file is located in: /home/chapter4_tutorials/robot1_description/urdf/robot1.urdf
and the launch file is located in: /home/chapter4_tutorials/robot1_description/launch/display.launch
However, I keep getting the following error:
RLException: [display.launch] is neither a launch file in package [robot1_description] nor is [robot1_description] a launch file name The traceback for the exception was written to the log file
Is there something I'm doing wrong?
I'm currently using the Ubuntu 18.04 distro.
Can you tell us a bit about how you configured/created your workspace?
ROS packages must be located in a workspace. You cannot place them in arbitrary locations.
Also:
this won't work. It should probably be
That might be the issue. I'm a total noob and I didn't really know a workspace had to be created. How could I go about doing that? And thanks for formatting my question as well.
http://wiki.ros.org/ROS/Tutorials/Ins...
If you haven't done so yet, I would suggest to follow a tutorial or two. The one that @David Lu links to is a good one. The generic ROS tutorials are also good to do at least once. Those will teach you the basics.