最近在拜读ROS大神胡春旭的书籍《机器人开发实践》,随把源代码从仓库clone下来,进行编译和学习。仓库代码主要是基于Kinetic版本的,而目前我们主要使用Melodic版本,所以很多地方问题不一样现记录如下,希望后来者可以参考学习。
该问题属于ROS和ROS2的不兼容造成,直接把ROS2移除即可。
Could not find the required component ‘ecto’. 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/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by “ecto” with any of
the following names:
ectoConfig.cmake
ecto-config.cmake
Add the installation prefix of “ecto” to CMAKE_PREFIX_PATH or set
“ecto_DIR” to a directory containing one of the above files. If “ecto”
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
ros_exploring-master/robot_perception/ork_tutorials/CMakeLists.txt:4 (find_package)
$ sudo apt-get install ros-kinetic-ecto
https://blog.csdn.net/ckkboy/article/details/99584987
$ sudo apt install ros-kinetic-manipulation-msgs
$ cd your_path/src
$ git clone https://github.com/ros-interactive-manipulation/manipulation_msgs.git
$ sudo cp ros_exploring/robot_perception/robot_voice/libs/x64/libmsc.so /usr/lib/libmsc.so
/ros_exploring/ros_advanced/dynamic_tutorials/cfg/Tutorials.cfg: Permission denied
加上权限即可
sudo chmod +x Tutorials.cfg
https://github.com/ros-interactive-manipulation/household_objects_database_msgs.git
编译过程中可能还会遇到诸如gazebo等等这些库缺失可以直接使用ros-melodic-你要找的进行安装即可。欢迎大家学习交流。
[1]https://blog.csdn.net/YiKangJ/article/details/82024809
[2]https://blog.csdn.net/ckkboy/article/details/99584987