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

roslaunch: is neither a launch file in package

asked 2020-08-25 21:16:21 -0500

synapsido gravatar image

Hi, I'm using Kinetic and I'm trying to launch other's and examples codes but all roslaunch shows this message:

[*.launch] is neither a launch file in package [nao_description] nor is [nao_description] a launch file name
The traceback for the exception was written to the log file

I used source /home/myuser/catkin_ws/devel/setup.bash and roslaunch again, but the problem still. Someone can help please...?

edit retag flag offensive close merge delete

Comments

I get that error when I try roslaunch in the wrong folder, or misspell the file name.

If you're not in the folder of the launch file, you have to use the exact path in the call. Try it first from within the folder containing the launch file.

billy gravatar image billy  ( 2020-08-25 22:48:13 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2021-03-23 09:10:43 -0500

Loy gravatar image

updated 2021-03-23 09:10:56 -0500

Things to check

  • Is the package compiled with catkin_make or catkin build and was that successful?
  • Can you find it in echo $ROS_PACKAGE_PATH
  • Can you find it in rospack list | grep <package name>
edit flag offensive delete link more

Comments

if I can't find package, but catkin build went well, what can be the problem ? (but maybe I runed catkin build in different package).

dvogureckiy99 gravatar image dvogureckiy99  ( 2023-02-18 13:49:26 -0500 )edit
0

answered 2020-08-26 01:28:14 -0500

Ray_Shim gravatar image

updated 2020-08-26 05:46:53 -0500

I had same errors.

Is catkin_make successful. Easy way to check your launch files is ok. "using 'double tap'" for example,

  1. roslaunch 'first spelling of your package name' (tap tap)
  2. roslaunch 'your package name' 'first spelling of your launch file name' (tap tap) If there is no auto fill, then you fail at catkin_make. 2. Is launch file? It can be "rosrun"
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-08-25 21:16:21 -0500

Seen: 11,534 times

Last updated: Mar 23 '21