Package cannot find nav_msgs even though its listed as a dependency? [closed]
Hello, I am trying to run a ROS node for the ax2550 motor controller, found here:
https://github.com/wjwwood/ax2550
However, when I try to compile with catkin_make, I get the following error:
CMake Error at /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:255 (message): Messages depends on unknown pkg: nav_msgs (Missing find_package(nav_msgs?)) Call Stack (most recent call first): ax2550/CMakeLists.txt:22 (generate_messages)
Everything I can find about this error online simply indicates that I need to specify nav_msgs as a dependency to my package, but it's already there:
<build_depend>nav_msgs</build_depend> <run_depend>nav_msgs</run_depend>
Any ideas as to what could br going wrong?
Make sure that nav_msgs is installed, the following command should show the path to nav_msgs: rospack find nav_msgs
It is installed, and entering that command returns the correct path: /opt/ros/hydro/share/nav_msgs. Although maybe its possible that the node isn't looking for nav_msgs there--I don't know hot tell from the code or the error.