I installed ros-melodic-navigation with:

$ sudo apt-get install ros-melodic-navigation
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ros-melodic-navigation is already the newest version (1.16.6-1bionic.20200530.114248).
The following packages were automatically installed and are no longer required:
  linux-headers-5.3.0-51 linux-headers-5.3.0-51-generic
  linux-image-5.3.0-51-generic linux-modules-5.3.0-51-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 300 not upgraded.

I can find the navigation package with:

$ apt list | grep navigation
ros-melodic-navigation/bionic,now 1.16.6-1bionic.20200530.114248 amd64 [installed]

But when I try it with rospack, I get an error

rospack find navigation
[rospack] Error: package 'navigation' not found

What is the issue here?

  • $\begingroup$ Have you tried rospack profile before rospack find? $\endgroup$
    – Franky
    Jun 20 '20 at 16:43
  • $\begingroup$ I don't know of rospack profile so I haven't tried it. $\endgroup$ Jun 20 '20 at 17:25
  • $\begingroup$ Please try rospack profile before searching for the package. $\endgroup$
    – Franky
    Jun 21 '20 at 4:31

generally, I think posting ROS related questions would be better on ROS answers

Regarding your question - did you source /opt/ros/melodic/setup.bash ?

You can check the package path by echo $ROS_PACKAGE_PATH , which is the path where rospack will search

  • $\begingroup$ I found that it took some time to get an answer from there. $\endgroup$ Jul 8 '20 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.