ZED2 ROS环境 zed-ros-wrapper
发布时间
阅读量:
阅读量
前面的sdk安装和配置都按照这个教程安装即可
在 /usr/local/zed/tools 下运行
./ZED_Depth_Viewer
即可获得

在配置ros下环境时出现了一点问题,如果按照教程里直接git 会得到最新的版本
$ cd ~/ZED_WS/src
$ git clone https://github.com/stereolabs/zed-ros-wrapper.git
$ git clone https://github.com/stereolabs/zed-ros-interfaces
$ git clone https://github.com/stereolabs/zed-ros-examples.git
$ cd ../
比如我安装的sdk是3.8.2,和最新的wrapper就无法共存因为那个会要求sdk>=4.0 ,就会出现如下报错
CMake Warning at zed-ros-wrapper/zed_nodelets/CMakeLists.txt:25 (find_package):
Could not find a configuration file for package "ZED" that is compatible
with requested version "4".
The following configuration files were considered but not accepted:
/usr/local/zed/zed-config.cmake, version: 3.8.2
CMake Error at zed-ros-wrapper/zed_nodelets/CMakeLists.txt:20 (message):
ZED SDK v4.x not found, install it from:
https://www.stereolabs.com/developers/
Call Stack (most recent call first):
zed-ros-wrapper/zed_nodelets/CMakeLists.txt:26 (checkPackage)
解决方法:
直接进入网站https://github.com/stereolabs/zed-ros-wrapper.git 在里面点击tag项去下载和自己相配合的版本 比如我的就下载3.8.2然后自己解压缩后放到zed_ws/src下即可。

接着执行
$ rosdep install --from-paths src --ignore-src -r -y
$ catkin_make -DCMAKE_BUILD_TYPE=Release
$ source ./devel/setup.bash
即可成功完成编译
安装完成之后就可以运行几个自带的launch文件看看在rviz里运行的效果:
1)roslaunch zed_display_rviz display_zed2.launch
2)roslaunch zed_rtabmap_example zed_rtabmap.launch
运行效果如下


全部评论 (0)
还没有任何评论哟~
