-
问题1:Could not find a package configuration file provided by “tf2_sensor_msgs”
-
解决:
sudo apt-get install ros-noetic-tf2-sensor-msgs
-
问题2:CMake Error at APACE/trajectory/CMakeLists.txt:10 (find_package):
By not providing “FindNLopt.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “NLopt”, but
CMake did not find one.Could not find a package configuration file provided by “NLopt” with any of
the following names:NLoptConfig.cmake
nlopt-config.cmakeAdd the installation prefix of “NLopt” to CMAKE_PREFIX_PATH or set
“NLopt_DIR” to a directory containing one of the above files. If “NLopt”
provides a separate development package or SDK, be sure it has been
installed. -
解决:Ubuntu20版本通过apt安装会出现错误,先卸载nlopt,
sudo apt remove ros-noetic-nlopt
,然后通过下面的命令源码安装cd path to APACE git clone https://github.com/stevengj/nlopt.git cd nlopt mkdir build && cd build cmake .. make sudo make install
11-29
2836
07-14
9212
11-29
1万+