1. aruco_ros安装
安装这个是为了识别ArUco marker
cd ~/catkin_ws/src
git clone -b melodic-devel https://github.com/pal-robotics/aruco_ros.git
cd ..
catkin_make
1.1 你可能会遇到下面的问题
-- Could not find the required component 'pcl_ros'. 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 "pcl_ros" with any
of the following names:
pcl_rosConfig.cmake
pcl_ros-config.cmake
Add the installation prefix of "pcl_ros" to CMAKE_PREFIX_PATH or set
"pcl_ros_DIR" to a directory containing one of the above files. If
"pcl_ros" provides a separate development package or SDK, be sure it has
been installed.
你只需要这样做就可以了t
sudo apt-get install ros-melodic-pcl-ros
接下来你又会看到
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ros-melodic-pcl-ros : Depends: libpcl-dev but it is not going to be installed
Depends: ros-melodic-pcl-conversions but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
你这样做
sudo apt-get install aptitude
sudo aptitude install libpcl-dev
最后,继续编译
catkin_make
2. vision_visp / visp_hand2eye_calibration安装
cd ~/catkin_ws #the name of your work space
sudo apt-get install ros-melodic-visp
cd src
git clone -b melodic-devel https://github.com/lagadic/vision_visp.git
cd ..
catkin_make --pkg visp_hand2eye_calibration
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"camera_calibration_parsers" with any of the following names:
camera_calibration_parsersConfig.cmake
camera_calibration_parsers-config.cmake
Add the installation prefix of "camera_calibration_parsers" to
CMAKE_PREFIX_PATH or set "camera_calibration_parsers_DIR" to a directory
sudo apt-get install ros-melodic-camera-calibration-parsers
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "image_proc" with
any of the following names:
image_procConfig.cmake
image_proc-config.cmake
Add the installation prefix of "image_proc" to CMAKE_PREFIX_PATH or set
"image_proc_DIR" to a directory containing one of the above files.
sudo apt-get install ros-melodic-image-proc
3. easy_handeye安装
cd ~/catkin_ws/src
git clone https://github.com/IFL-CAMP/easy_handeye
cd ..
catkin_make