Install libnav-msgs-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libnav-msgs-dev
Messages relating to Robot OS nav, C/C++ interface
This package is part of Robot OS (ROS), and provides the common messages used to interact with the 'nav' http://wiki.ros.org/navigation stack. . This package contains the generated headers files.