前提肯定是成功安装了ros对应的版本,并且安装了zed相机对应的SDK,并且tools可以成功运行
1.新建ros工作空间
mkdir -p zed_ws/src
catkin_make
2.下载zed_ros_wrapper
cd ~/zed_ws/src
git clone https://github.com/stereolabs/zed-ros-wrapper.git
cd ../
rosdep install --from-paths src --ignore-src -r -y
catkin_make -DCMAKE_BUILD_TYPE=Release
source ./devel/setup.bash
catkin_make ,编译过程中出现的错误(缺失zed_interfaces包)
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "zed_interfaces"
with any of the following names:
zed_interfacesConfig.cmake
zed_interfaces-config.cmake
Add the installation prefix of "zed_interfaces" to CMAKE_PREFIX_PATH or set
"zed_interfaces_DIR" to a directory containing one of the above files. If
"zed_interfaces" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
zed-ros-wrapper/zed_nodelets/CMakeLists.txt:41 (find_package)
-- Configuring incomplete, errors occurred!
解决方法:在zed_ws/src文件夹下载zed_interfaces包,再重新编译即可
git clone https://github.com/stereolabs/zed-ros-interfaces