Getting "RLException: [display.launch] is neither a launch file in package [robot1_description] nor is [robot1_description] a launch file name" error

asked 2018-11-08 12:10:46 -0500

TrickyDoe gravatar image

updated 2018-11-08 14:23:39 -0500

gvdhoorn gravatar image

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.

edit retag flag offensive close merge delete

Comments

2

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:

model:="'rospack find robot1_description'/..

this won't work. It should probably be

model:="$(rospack find ..)/.."
gvdhoorn gravatar imagegvdhoorn ( 2018-11-08 14:26:38 -0500 )edit

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.

TrickyDoe gravatar imageTrickyDoe ( 2018-11-08 16:41:19 -0500 )edit
1

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.

gvdhoorn gravatar imagegvdhoorn ( 2018-11-09 02:25:08 -0500 )edit