stereolabs / zed-sdk

⚡️The spatial perception framework for rapidly building smart robots and spaces
https://stereolabs.com
MIT License
783 stars 457 forks source link

build error in "depth sensing/automatic region of interest/cpp" #639

Closed katsunori-waragai closed 1 month ago

katsunori-waragai commented 2 months ago

Preliminary Checks

Description

The following C++ sample code from the ZED SDK could not be built depth sensing/automatic region of interest/cpp`

Steps to Reproduce

  1. git clone git@github.com:stereolabs/zed-sdk.git
  2. cd "depth sensing/automatic region of interest/cpp"
  3. mkdir build
  4. cd build
  5. cmake ../CMakeLists.txt
  6. make ...

Expected Result

make should be successful.

Actual Result

someone@someone-orin:~/github/zed-sdk/depth sensing/automatic region of interest/cpp/build$ make
[ 50%] Building CXX object CMakeFiles/ZED_Auto_Sensing_ROI.dir/src/main.cpp.o
/home/someone/github/zed-sdk/depth sensing/automatic region of interest/cpp/src/main.cpp: In function ‘int main(int, char**)’:
/home/someone/github/zed-sdk/depth sensing/automatic region of interest/cpp/src/main.cpp:88:15: error: ‘struct sl::RegionOfInterestParameters’ has no member named ‘auto_apply’
   88 |     roi_param.auto_apply = true;
      |               ^~~~~~~~~~
make[2]: *** [CMakeFiles/ZED_Auto_Sensing_ROI.dir/build.make:76: CMakeFiles/ZED_Auto_Sensing_ROI.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/ZED_Auto_Sensing_ROI.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

ZED Camera model

ZED2i

Environment

OS: Ubuntu 20.04 LTS
CPU: ARM
GPU: Nvidia Jetson AGX orin
ZED SDK version: 4.1.1
Other info: JetPack 5.1, python3.8.10

Anything else?

No response

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days