Skip to content

Instantly share code, notes, and snippets.

@whateverforever
Last active August 20, 2021 13:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whateverforever/3cc46137e1135e4f2ddd89db0b0a45aa to your computer and use it in GitHub Desktop.
Save whateverforever/3cc46137e1135e4f2ddd89db0b0a45aa to your computer and use it in GitHub Desktop.
rosversion roslaunch can't locate [roslaunch]

rosversion roslaunch can't locate [roslaunch]

RLException: Invalid tag: Cannot load command parameter [rosversion]

You can't start a roscore anymore, because rosversion can't find roslaunch?

  1. Try roscd <some_package> with a package you know you have installed.
  2. If that doesn't work and if your ROS_ env variables are all set correctly, check rospack profile.
  3. If that doesn't yield a list of directories like below, check if your ROS_PACKAGE_PATH contains a lone package.xml amidst the packages. For some reason, such a lone package.xml will prevent rospack from looking into the other folders, and thus it won't discover your installed modules.
$ # should look like his
$ rospack profile
Full tree crawl took 0.217425 seconds.
Directories marked with (*) contain no manifest.  You may
want to delete these directories.
To get just of list of directories without manifests,
re-run the profile with --zombie-only
-------------------------------------------------------------
0.206863   /opt/ros/noetic/share
0.000770 * /opt/ros/noetic/share/...
...
$ # this is where error comes from
$ ll /opt/ros/noetic/share/
total 1060
drwxr-xr-x 262 root root 12288 Jun 28 16:35 ./
drwxr-xr-x   7 root root  4096 Mai  7 14:34 ../
drwxr-xr-x   5 root root  4096 Mai  7 14:34 actionlib/
drwxr-xr-x   4 root root  4096 Mai  7 14:34 actionlib_msgs/
drwxr-xr-x   5 root root  4096 Mai  7 14:34 actionlib_tutorials/
...
drwxr-xr-x   5 root root  4096 Mai  7 14:34 octomap_msgs/
drwxr-xr-x   3 root root  4096 Jun  7 08:30 octomap_ros/
-rw-r--r--   1 root root   820 Jun 15 16:52 package.xml           <--- culprit
drwxr-xr-x   3 root root  4096 Mai  7 14:34 pcl_conversions/
drwxr-xr-x   5 root root  4096 Mai  7 14:34 pcl_msgs/
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment