# roslaunch: [ ] is neither a launch file in package [ ] nor is [ ] a launch file name

Hi everyone,

I know a lot of answers to this kind of problem are lurking around, but I swear everything I tried isn't working. I've sourced the environment multiple times manually, or adding source/home/alexis/catkin_ws/devel/setup.bash inside the ~./bashrc file. I am positive the folder and files do exist. I've also built it multiple times via catkin build or catkin_make.

But still, whenever I run the command:

roslaunch catkin_ws map_navigation_stage_psu.launch


the error that is in the title shows up. I honestly don't know what to do anymore.

The content of "map_navigation_stage_psu.launch" is as follow:

<launch>
<include file="$(find catkin_ws)/src/turtlebot/navigation/map_navigation/launch/turtlebot_stage_psu.launch"/> <node name="map_navigation" pkg="catkin_ws" type="map_navigation_node" output="screen"> </node> </launch>  Thank you for bearing with me edit retag close merge delete ## 3 Answers Sort by » oldest newest most voted But still, whenever I run the command: roslaunch catkin_ws map_navigation_stage_psu.launch  catkin_ws is the name of the directory that contains your Catkin workspace. It is not a package. roslaunch can only find (and $(find ..)) packages, not workspaces.

Try replacing catkin_ws with the actual package name and see if that works any better.

Also:

source/home/alexis/catkin_ws/devel/setup.bash inside the ~./bashrc file.

If this is not a typo, this line is missing a space between source and /home/alexis/...

more

It looks, you are trying to use catkin workspace name in place of package name. Catkin workspace and package both are different.

A catkin package is simply a directory descended from ROS_PACKAGE_PATH that has a package.xml file in it. Packages are the most atomic unit of build and the unit of release.

A catkin workspace is a folder where you modify, build, and install catkin packages. This workspace can contain many packages.

So modify include tag and node tag of the above launch file as per the actual package name.

<launch>
</node>
</launch>


The command to launch map_navigation_stage_psu.launch is

roslaunch map_navigation map_navigation_stage_psu.launch


Note: I assumed that the package name is map_navigation. The package name can be verified using package.xml.

more

I modified the content as suggested, checked if there was another package with the same name and corrected the typo but still having the error. Though thank you all for correcting the mistakes that were made until now,, it really helps.

( 2018-03-20 03:07:11 -0600 )edit

Please share the updated launch file content.

( 2018-03-20 04:39:51 -0600 )edit

I also faced a similar issue, try deleting and build and devel folder and doing catkin_make again and sourcing it. Is it possible that you have a package by the same name else where in the system under a different workspace?

more