Skip to content

‘SENSING_MODE’ has not been declared #13

@celikemir

Description

@celikemir

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • This issue is not a question, feature request, or anything other than a bug report directly related to this project.

Description

this repo cannot compile with new sdk

Steps to Reproduce

  1. Install ZED SDK 4.0
  2. git clone https://github.com/stereolabs/zed-pcl.git
  3. cd zed-pcl && mkdir build && cd build && cmake .. && make

Expected Result

successful compilation

Actual Result

Scanning dependencies of target ZED_with_PCL
[ 50%] Building CXX object CMakeFiles/ZED_with_PCL.dir/src/main.cpp.o
/home/ubuntu/zed-pcl/src/main.cpp: In function ‘void run()’:
/home/ubuntu/zed-pcl/src/main.cpp:163:22: error: ‘SENSING_MODE’ has not been declared
163 | if (zed.grab(SENSING_MODE::STANDARD) == ERROR_CODE::SUCCESS) {
| ^~~~~~~~~~~~
make[2]: *** [CMakeFiles/ZED_with_PCL.dir/build.make:82: CMakeFiles/ZED_with_PCL.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/ZED_with_PCL.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

ZED Camera model

ZED2i

Environment

OS: 20.04
GPU: RTX 3070

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions