problem installing nmea_navsat_driver
Hello, I am having issues installing the nmeanavsatdriver (http://wiki.ros.org/nmea_navsat_driver). I am on ubuntu 20.04, ROS Noetic. Here are the steps I followed when I tried to install it. cd ~/catkin-ws/src git clone https://github.com/ros-drivers/nmea_navsat_driver.git cd .. source devel/setup.bash catkin_make
here I get the following error : Could NOT find catkinvirtualenv (missing: catkinvirtualenvDIR) -- Could not find the required component 'catkinvirtualenv'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (findpackage): Could not find a package configuration file provided by "catkinvirtualenv" With any of the following names: catkinvirtualenvConfig.cmake catkinvirtualenv-config.cmake Add the installation prefix of "catkinvirtualenv" to CMAKEPREFIXPATH or set "catkinvirtualenvDIR" to a directory containing one of the above files. If "catkinvirtualenv" provides a separate development package or SDK, be sure it has been installed.
So I believe I have to install catkinvirtualenv so I did: git clone https://github.com/locusrobotics/catkinvirtualenv
And now after running catkin_make, I get a different error, the error message is very long but here is the first part:
Traceback (most recent call last):
File "/home/user/catkinws/devel/lib/catkinvirtualenv/venvinit", line 15, in
It looks like the error comes from the fact that python is required and not python3, but I am not sure. I hope someone can help me. Thank you very much and let me know if you need more info on the error.
Asked by GMGims on 2023-01-09 22:10:11 UTC
Answers
Building some ros packages from source code can be a bit of a challenge. For historical reasons, there are two build systems: catkin_make and "catkin build". They are not compatible.
Secondly, catkin_virtualenv
doesn't look like it is a ros package, so it doesn't go in your catkin_ws tree. It's a "system" python package
You got unlucky that this driver just isn't a good package for a beginner to learn how to build a ros package. For most ros packages, It's not so difficult.
Asked by Mike Scheutzow on 2023-01-11 07:16:13 UTC
Comments
Please explain why you are not installing this from the binary ros repository. It is much easier and less chance of error. The apt package is
ros-noetic-nmea-navsat-driver
.Asked by Mike Scheutzow on 2023-01-10 18:49:30 UTC
Thank you very much for your help, I was able to install the driver. Have a great day.
Asked by GMGims on 2023-01-10 23:29:53 UTC