When I ran "sudo ./aditof_demo", I could not get any frame data from AD-FXTOF1-EBZ.

Hello,
[My environment]
Hardware : AD-FXTOF1-EBZ + NVidia Xavier NX

[The steps I done]
analog@analog-desktop:~/workspace/github/aditof_sdk$  git pull
remote: Enumerating objects: 2742, done.
remote: Counting objects: 100% (2737/2737), done.
remote: Compressing objects: 100% (1215/1215), done.
remote: Total 2742 (delta 2006), reused 2046 (delta 1469), pack-reused 5
Receiving objects: 100% (2742/2742), 8.33 MiB | 2.80 MiB/s, done.
Resolving deltas: 100% (2006/2006), completed with 116 local objects.
From https://github.com/analogdevicesinc/aditof_sdk
   329de12b..5e0ac46f  master                 -> origin/master
 * [new branch]        add_controls_for_dist_coef -> origin/add_controls_for_dist_coef
 * [new branch]        add_revision_control   -> origin/add_revision_control
 * [new branch]        bayer_conversion       -> origin/bayer_conversion
 * [new branch]        demo-server-rgb-update -> origin/demo-server-rgb-update
 * [new branch]        extend_matlab_frame_types -> origin/extend_matlab_frame_types
 * [new branch]        extend_server_for_rgb  -> origin/extend_server_for_rgb
 * [new branch]        frame_sync             -> origin/frame_sync
   a2b86c2a..04a94521  fxtof1-doc             -> origin/fxtof1-doc
 + e132c404...110a6ecb gh-pages               -> origin/gh-pages  (forced update)
 * [new branch]        prod_test_for_tof      -> origin/prod_test_for_tof
 * [new branch]        rgb_camera_rebase2     -> origin/rgb_camera_rebase2
 * [new branch]        rgbd_sensor            -> origin/rgbd_sensor
 * [new branch]        rgbd_sensor_2          -> origin/rgbd_sensor_2
 * [new branch]        rgbd_sensor_squash     -> origin/rgbd_sensor_squash
 * [new branch]        ros_rgb                -> origin/ros_rgb
 * [new branch]        test-rgb-and-bayer     -> origin/test-rgb-and-bayer
 * [new branch]        test_branch            -> origin/test_branch
 * [new branch]        update_jetson_nano     -> origin/update_jetson_nano
 * [new branch]        update_matlab_documentation -> origin/update_matlab_documentation
 * [new tag]           v2.0.1                 -> v2.0.1

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'analog@analog-desktop.(none)')
analog@analog-desktop:~/workspace/github/aditof_sdk$ git config --global user.email #####
analog@analog-desktop:~/workspace/github/aditof_sdk$ git config --global user.name #####
analog@analog-desktop:~/workspace/github/aditof_sdk$ sudo git pull
[sudo] password for analog: 
error: Your local changes to the following files would be overwritten by merge:
	bindings/matlab/adaptor.cpp
	bindings/matlab/source_adaptor.cpp
Please commit your changes or stash them before you merge.
Aborting
analog@analog-desktop:~/workspace/github/aditof_sdk$ sudo git slash
git: 'slash' is not a git command. See 'git --help'.

The most similar command is
	stash
analog@analog-desktop:~/workspace/github/aditof_sdk$ sudo git stash
Saved working directory and index state WIP on master: ebe11711 Update TEMP_SENSOR_DEV_PATH for xaviernx and fxtof1
analog@analog-desktop:~/workspace/github/aditof_sdk$ sudo git pull
Removing sdk/src/cameras/chicony-006/camera_chicony_006.cpp
Removing sdk/src/cameras/chicony-006/calibration_chicony_006.h
Removing sdk/src/cameras/chicony-006/calibration_chicony_006.cpp
Removing sdk/src/cameras/chicony-006/Chicony_EEPROM.h
Auto-merging sdk/src/cameras/3d-smart-camera/jetson/target_definitions.h
Auto-merging sdk/src/cameras/3d-smart-camera/camera_3d_smart.h
Auto-merging sdk/include/aditof/target_sdk_definitions.h
Removing misc/chicony/libChicony_EEPROM.so
Removing doc/raspberrypi3/chicony_user_guide.md
Removing doc/img/rpi_standalone_chicony.png
Merge made by the 'recursive' strategy.
 .clangformatignore                                 |    1 -
 .gitignore                                         |    1 +
 CMakeLists.txt                                     |   45 +-
 README.md                                          |   19 +-
 apps/CMakeLists.txt                                |    7 +
 apps/server/README.md                              |   16 +
 apps/server/buffer.proto                           |   24 +
 apps/server/server.cpp                             |  209 ++-
 apps/server/server.h                               |    3 +-
 bindings/matlab/adaptor.cpp                        |   73 +-
 bindings/matlab/aditof_imaq.m                      |   16 +-
 bindings/matlab/aditofimaq.h                       |   13 +-
 bindings/matlab/source_adaptor.cpp                 |   22 +-
 bindings/python/aditofpython.cpp                   |   13 +-
 .../low_level_example/low_level_example.py         |    6 +-
 bindings/ros/ros_setup.bash                        |    4 +
 ci/azure/inside_docker.sh                          |    4 +-
 ci/azure/lib.sh                                    |    4 +-
 ci/azure/run_build.sh                              |    2 +-
 doc/img/rpi_standalone_chicony.png                 |  Bin 850033 -> 0 bytes
 doc/jetson/build_instructions.md                   |   11 +
 doc/raspberrypi3/build_instructions.md             |   12 +
 doc/raspberrypi3/chicony_user_guide.md             |   83 -
 doc/xavier-agx/build_instructions.md               |   11 +
 doc/xavier-nx/build_instructions.md                |   11 +
 examples/aditof-demo/CMakeLists.txt                |    2 +-
 examples/aditof-demo/aditofdemocontroller.cpp      |   35 +-
 examples/aditof-demo/aditofdemocontroller.h        |    9 +
 examples/aditof-demo/aditofdemorecorder.cpp        |   14 +-
 examples/aditof-demo/aditofdemoview.cpp            |  322 +++-
 examples/aditof-demo/aditofdemoview.h              |   19 +-
 examples/imshow-jetson/main.cpp                    |   25 +-
 misc/chicony/libChicony_EEPROM.so                  |  Bin 28724 -> 0 bytes
 .../tegra210-porg-camera-adi-tof.dtsi              |    5 +
 .../kernel-dts/tegra210-porg-p3448-common.dtsi     |  120 +-
 .../kernel/kernel-4.9/drivers/media/i2c/addi9036.c |    2 +-
 .../tegra194-camera-addi9036.dtsi                  |    5 +
 .../tegra194-camera-addi9036.dtsi                  |    5 +
 scripts/linux/setup.sh                             |    2 +-
 sdk/CMakeLists.txt                                 |   73 +-
 sdk/include/aditof/camera.h                        |   10 +-
 sdk/include/aditof/depth_sensor_interface.h        |   11 +-
 sdk/include/aditof/frame.h                         |   21 +-
 sdk/include/aditof/frame_definitions.h             |   11 +
 sdk/include/aditof/sensor_definitions.h            |   14 +-
 sdk/include/aditof/sensor_enumerator_interface.h   |    9 +
 sdk/include/aditof/system.h                        |   17 +-
 .../aditof/target_sdk_definitions.h}               |   52 +-
 sdk/src/cameras/3d-smart-camera/basecode.h         | 1813 ++++++++++++++++++++
 .../3d-smart-camera/calibration_3d_smart.cpp       |  416 +++++
 .../cameras/3d-smart-camera/calibration_3d_smart.h |   98 ++
 .../cameras/3d-smart-camera/camera_3d_smart.cpp    |  822 +++++++++
 .../camera_3d_smart.h}                             |   67 +-
 .../jetson/sensor_enumerator_jetson.cpp            |  142 ++
 .../jetson}/target_definitions.h                   |    9 +-
 .../sensor_names.h                                 |    0
 .../cameras/ad-96tof1-ebz/calibration_96tof1.cpp   |    5 +-
 sdk/src/cameras/ad-96tof1-ebz/camera_96tof1.cpp    |   20 +-
 sdk/src/cameras/ad-96tof1-ebz/camera_96tof1.h      |    4 +-
 .../ad-96tof1-ebz/raspberrypi/target_definitions.h |    8 +-
 .../cameras/ad-fxtof1-ebz/calibration_fxtof1.cpp   |   37 +-
 sdk/src/cameras/ad-fxtof1-ebz/calibration_fxtof1.h |   27 +-
 sdk/src/cameras/ad-fxtof1-ebz/camera_fxtof1.cpp    |   68 +-
 sdk/src/cameras/ad-fxtof1-ebz/camera_fxtof1.h      |    5 +-
 .../jetson/sensor_enumerator_jetson.cpp            |   63 +-
 .../ad-fxtof1-ebz/raspberrypi/target_definitions.h |    2 +-
 sdk/src/cameras/chicony-006/Chicony_EEPROM.h       |   41 -
 .../chicony-006/calibration_chicony_006.cpp        |  582 -------
 .../cameras/chicony-006/calibration_chicony_006.h  |   85 -
 sdk/src/cameras/chicony-006/camera_chicony_006.cpp |  489 ------
 sdk/src/connections/network/buffer.proto           |   24 +
 sdk/src/connections/network/network.cpp            |    2 +-
 .../connections/network/network_depth_sensor.cpp   |  147 +-
 sdk/src/connections/network/network_depth_sensor.h |   15 +-
 .../network/network_sensor_enumerator.cpp          |   90 +-
 .../network/network_sensor_enumerator.h            |    4 +
 sdk/src/connections/target/addi9036_sensor.cpp     |  241 ++-
 sdk/src/connections/target/addi9036_sensor.h       |    6 +-
 sdk/src/connections/target/rgb_sensor.cpp          |  603 +++++++
 sdk/src/connections/target/rgb_sensor.h            |  115 ++
 .../target/target_sensor_enumerator.cpp            |   19 +
 .../connections/target/target_sensor_enumerator.h  |    3 +
 .../usb/linux/usb_depth_sensor_linux.cpp           |   23 +-
 .../usb/linux/usb_sensor_enumerator.cpp            |    5 +
 .../usb/macos/usb_depth_sensor_macos.cpp           |    9 +
 .../usb/macos/usb_sensor_enumerator.cpp            |    5 +
 sdk/src/connections/usb/usb_depth_sensor.h         |    7 +-
 sdk/src/connections/usb/usb_sensor_enumerator.h    |    2 +
 .../usb/windows/usb_depth_sensor_windows.cpp       |   23 +-
 .../usb/windows/usb_sensor_enumerator.cpp          |    5 +
 sdk/src/frame_impl.cpp                             |   16 +-
 sdk/src/frame_impl.h                               |    1 +
 sdk/src/sensor_enumerator_factory.cpp              |    5 -
 sdk/src/system_impl.cpp                            |   92 +-
 tools/calibration-96tof1/tof_calib/device.py       |    6 +-
 utils/raspberrypi/53-aditofsdkraspberrypi.rules    |   12 +-
 96 files changed, 5824 insertions(+), 1852 deletions(-)
 delete mode 100644 doc/img/rpi_standalone_chicony.png
 delete mode 100644 doc/raspberrypi3/chicony_user_guide.md
 delete mode 100644 misc/chicony/libChicony_EEPROM.so
 rename sdk/{src/cameras/chicony-006/raspberrypi/sensor_enumerator_raspberrypi.cpp => include/aditof/target_sdk_definitions.h} (56%)
 create mode 100644 sdk/src/cameras/3d-smart-camera/basecode.h
 create mode 100644 sdk/src/cameras/3d-smart-camera/calibration_3d_smart.cpp
 create mode 100644 sdk/src/cameras/3d-smart-camera/calibration_3d_smart.h
 create mode 100644 sdk/src/cameras/3d-smart-camera/camera_3d_smart.cpp
 rename sdk/src/cameras/{chicony-006/camera_chicony_006.h => 3d-smart-camera/camera_3d_smart.h} (65%)
 create mode 100644 sdk/src/cameras/3d-smart-camera/jetson/sensor_enumerator_jetson.cpp
 rename sdk/src/cameras/{chicony-006/raspberrypi => 3d-smart-camera/jetson}/target_definitions.h (88%)
 rename sdk/src/cameras/{chicony-006 => 3d-smart-camera}/sensor_names.h (100%)
 delete mode 100644 sdk/src/cameras/chicony-006/Chicony_EEPROM.h
 delete mode 100644 sdk/src/cameras/chicony-006/calibration_chicony_006.cpp
 delete mode 100644 sdk/src/cameras/chicony-006/calibration_chicony_006.h
 delete mode 100644 sdk/src/cameras/chicony-006/camera_chicony_006.cpp
 create mode 100644 sdk/src/connections/target/rgb_sensor.cpp
 create mode 100644 sdk/src/connections/target/rgb_sensor.h
analog@analog-desktop:~/workspace/github/aditof_sdk$ 


===③-②===
analog@analog-desktop:~/workspace/github/aditof_sdk/build$ cmake -DXAVIERNX=1 -DUSE_FXTOF1=1 ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/analog/workspace/github/aditof_sdk/build
analog@analog-desktop:~/workspace/github/aditof_sdk/build$ make -j4
[  2%] Running C++ protocol buffer compiler on src/connections/network/buffer.proto
/home/analog/workspace/github/aditof_sdk/build/sdk/buffer.pb.cc: Permission deniedsdk/CMakeFiles/aditof.dir/build.make:62: recipe for target 'sdk/buffer.pb.cc' failed
make[2]: *** [sdk/buffer.pb.cc] Error 1
CMakeFiles/Makefile2:117: recipe for target 'sdk/CMakeFiles/aditof.dir/all' failed
make[1]: *** [sdk/CMakeFiles/aditof.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
analog@analog-desktop:~/workspace/github/aditof_sdk/build$ sudo make -j4
[sudo] password for analog: 
[  2%] Running C++ protocol buffer compiler on src/connections/network/buffer.proto
Scanning dependencies of target aditof
[  4%] Building CXX object sdk/CMakeFiles/aditof.dir/src/filters_factory.cpp.o
[  9%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame.cpp.o
[  9%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame_impl.cpp.o
[ 11%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame_operations.cpp.o
[ 13%] Building CXX object sdk/CMakeFiles/aditof.dir/src/sensor_enumerator_factory.cpp.o
[ 15%] Building CXX object sdk/CMakeFiles/aditof.dir/src/system.cpp.o
[ 18%] Building CXX object sdk/CMakeFiles/aditof.dir/src/system_impl.cpp.o
[ 20%] Building CXX object sdk/CMakeFiles/aditof.dir/src/utils.cpp.o
[ 22%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/target/addi9036_sensor.cpp.o
[ 25%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/target/adt7410_sensor.cpp.o
[ 27%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/target/eeprom.cpp.o
[ 29%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/target/rgb_sensor.cpp.o
[ 31%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/target/target_sensor_enumerator.cpp.o
[ 34%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/target/tmp10x_sensor.cpp.o
[ 36%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/usb/usb_utils.cpp.o
[ 38%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/utils/connection_validator.cpp.o
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp: In member function ‘virtual aditof::Status RgbSensor::open()’:
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp:144:27: warning: variable ‘subDevName’ set but not used [-Wunused-but-set-variable]
     const char *devName, *subDevName, *cardName;
                           ^~~~~~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp:144:40: warning: variable ‘cardName’ set but not used [-Wunused-but-set-variable]
     const char *devName, *subDevName, *cardName;
                                        ^~~~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp: In member function ‘virtual aditof::Status RgbSensor::stop()’:
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp:300:24: warning: unused variable ‘buf’ [-Wunused-variable]
     struct v4l2_buffer buf;
                        ^~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp: In member function ‘virtual aditof::Status RgbSensor::setFrameType(const aditof::FrameDetails&)’:
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp:332:24: warning: unused variable ‘fmt’ [-Wunused-variable]
     struct v4l2_format fmt;
                        ^~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp:334:12: warning: unused variable ‘length’ [-Wunused-variable]
     size_t length, offset;
            ^~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp:334:20: warning: unused variable ‘offset’ [-Wunused-variable]
     size_t length, offset;
                    ^~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp: In member function ‘virtual aditof::Status RgbSensor::getFrame(uint16_t*, aditof::BufferInfo*)’:
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp:439:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = 0; j < RGB_FRAME_HEIGHT; j++) {
                         ~~^~~~~~~~~~~~~~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp:440:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int k = 0; k < RGB_FRAME_WIDTH; k++) {
                             ~~^~~~~~~~~~~~~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp: In member function ‘aditof::Status RgbSensor::dequeueInternalBufferPrivate(v4l2_buffer&, VideoDev*)’:
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/target/rgb_sensor.cpp:520:24: warning: unused variable ‘type’ [-Wunused-variable]
     enum v4l2_buf_type type;
                        ^~~~
[ 40%] Building CXX object sdk/CMakeFiles/aditof.dir/src/cameras/ad-fxtof1-ebz/calibration_fxtof1.cpp.o
[ 43%] Building CXX object sdk/CMakeFiles/aditof.dir/src/cameras/ad-fxtof1-ebz/camera_fxtof1.cpp.o
[ 45%] Building CXX object sdk/CMakeFiles/aditof.dir/src/cameras/ad-fxtof1-ebz/xavier_nx/sensor_enumerator_xaviernx.cpp.o
[ 47%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network.cpp.o
In file included from /home/analog/workspace/github/aditof_sdk/sdk/src/cameras/ad-fxtof1-ebz/camera_fxtof1.cpp:32:0:
/home/analog/workspace/github/aditof_sdk/sdk/src/cameras/ad-fxtof1-ebz/camera_fxtof1.h: In constructor ‘CameraFxTof1::CameraFxTof1(std::shared_ptr<aditof::DepthSensorInterface>, std::vector<std::shared_ptr<aditof::StorageInterface> >&, std::vector<std::shared_ptr<aditof::TemperatureSensorInterface> >&)’:
/home/analog/workspace/github/aditof_sdk/sdk/src/cameras/ad-fxtof1-ebz/camera_fxtof1.h:102:17: warning: ‘CameraFxTof1::m_revision’ will be initialized after [-Wreorder]
     std::string m_revision;
                 ^~~~~~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/cameras/ad-fxtof1-ebz/camera_fxtof1.h:93:10: warning:   ‘bool CameraFxTof1::m_devProgrammed’ [-Wreorder]
     bool m_devProgrammed;
          ^~~~~~~~~~~~~~~
/home/analog/workspace/github/aditof_sdk/sdk/src/cameras/ad-fxtof1-ebz/camera_fxtof1.cpp:65:1: warning:   when initialized here [-Wreorder]
 CameraFxTof1::CameraFxTof1(
 ^~~~~~~~~~~~
[ 50%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network_depth_sensor.cpp.o
[ 52%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network_sensor_enumerator.cpp.o
[ 54%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network_storage.cpp.o
[ 56%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network_temperature_sensor.cpp.o
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/network/network_sensor_enumerator.cpp: In member function ‘virtual aditof::Status NetworkSensorEnumerator::getDepthSensors(std::vector<std::shared_ptr<aditof::DepthSensorInterface> >&)’:
/home/analog/workspace/github/aditof_sdk/sdk/src/connections/network/network_sensor_enumerator.cpp:215:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 1; i < m_imageSensorsInfo.size(); ++i) {
                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 59%] Building CXX object sdk/CMakeFiles/aditof.dir/buffer.pb.cc.o
[ 61%] Linking CXX shared library libaditof.so
[ 61%] Built target aditof
Scanning dependencies of target first-frame
Scanning dependencies of target first-frame-network
Scanning dependencies of target aditofpython
Scanning dependencies of target aditof-demo
[ 63%] Building CXX object examples/first-frame-network/CMakeFiles/first-frame-network.dir/main.cpp.o
[ 65%] Building CXX object examples/first-frame/CMakeFiles/first-frame.dir/main.cpp.o
[ 68%] Building CXX object bindings/python/CMakeFiles/aditofpython.dir/aditofpython.cpp.o
[ 70%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/aditofdemorecorder.cpp.o
[ 72%] Linking CXX executable first-frame-network
[ 75%] Linking CXX executable first-frame
[ 75%] Built target first-frame-network
[ 75%] Built target first-frame
Scanning dependencies of target aditof-opencv-maskrcnn
Scanning dependencies of target aditof-opencv-dnn
[ 79%] Building CXX object bindings/opencv/maskrcnn/CMakeFiles/aditof-opencv-maskrcnn.dir/main.cpp.o
[ 79%] Building CXX object bindings/opencv/dnn/CMakeFiles/aditof-opencv-dnn.dir/main.cpp.o
[ 81%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/aditofdemoview.cpp.o
/home/analog/workspace/github/aditof_sdk/bindings/opencv/maskrcnn/main.cpp: In function ‘void postprocess(const cv::Mat&, cv::Mat&, const std::vector<cv::Mat>&)’:
/home/analog/workspace/github/aditof_sdk/bindings/opencv/maskrcnn/main.cpp:367:15: warning: unused variable ‘numClasses’ [-Wunused-variable]
     const int numClasses = outMasks.size[1];
               ^~~~~~~~~~
In file included from /home/analog/workspace/github/aditof_sdk/examples/aditof-demo/aditofdemoview.cpp:32:0:
/home/analog/workspace/github/aditof_sdk/examples/aditof-demo/aditofdemoview.h: In constructor ‘AdiTofDemoView::AdiTofDemoView(std::shared_ptr<AdiTofDemoController>&, const string&)’:
/home/analog/workspace/github/aditof_sdk/examples/aditof-demo/aditofdemoview.h:92:10: warning: ‘AdiTofDemoView::m_crtIRGamma’ will be initialized after [-Wreorder]
     bool m_crtIRGamma;
          ^~~~~~~~~~~~
/home/analog/workspace/github/aditof_sdk/examples/aditof-demo/aditofdemoview.h:78:10: warning:   ‘bool AdiTofDemoView::m_rgbCameraAvailable’ [-Wreorder]
     bool m_rgbCameraAvailable;
          ^~~~~~~~~~~~~~~~~~~~
/home/analog/workspace/github/aditof_sdk/examples/aditof-demo/aditofdemoview.cpp:67:1: warning:   when initialized here [-Wreorder]
 AdiTofDemoView::AdiTofDemoView(std::shared_ptr<AdiTofDemoController> &ctrl,
 ^~~~~~~~~~~~~~
[ 84%] Linking CXX executable aditof-opencv-dnn
[ 84%] Built target aditof-opencv-dnn
[ 86%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/aditofdemocontroller.cpp.o
[ 88%] Linking CXX executable aditof-opencv-maskrcnn
[ 88%] Built target aditof-opencv-maskrcnn
Scanning dependencies of target aditof-opencv-imshow
[ 90%] Building CXX object bindings/opencv/imshow/CMakeFiles/aditof-opencv-imshow.dir/main.cpp.o
[ 93%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/main.cpp.o
[ 95%] Linking CXX executable aditof-opencv-imshow
[ 95%] Built target aditof-opencv-imshow
[ 97%] Linking CXX executable aditof-demo
[ 97%] Built target aditof-demo
[100%] Linking CXX shared module aditofpython.cpython-36m-aarch64-linux-gnu.so
[100%] Built target aditofpython
analog@analog-desktop:~/workspace/github/aditof_sdk/build$ dir
aditof-setup.iss  CMakeCache.txt       examples		     sdk
apps		  CMakeFiles	       install_manifest.txt
bindings	  cmake_install.cmake  Makefile
analog@analog-desktop:~/workspace/github/aditof_sdk/build$ cd examples/aditof-demo
analog@analog-desktop:~/workspace/github/aditof_sdk/build/examples/aditof-demo$ dir
aditof-demo  CMakeFiles  cmake_install.cmake  config_pipe.sh  Makefile
analog@analog-desktop:~/workspace/github/aditof_sdk/build/examples/aditof-demo$ sudo ./aditof-demo
I1026 09:52:01.914427 11260 sensor_enumerator_xaviernx.cpp:49] Looking for devices on the target: Xavier NX
I1026 09:52:01.916564 11260 camera_fxtof1.cpp:128] Initializing camera
I1026 09:52:01.916644 11260 addi9036_sensor.cpp:143] Opening device
I1026 09:52:01.916705 11260 addi9036_sensor.cpp:161] Looking for the following cards:
I1026 09:52:01.916744 11260 addi9036_sensor.cpp:163] vi-output, addi9036 9-0064
I1026 09:52:01.916772 11260 addi9036_sensor.cpp:163] vi-output, addi9036 10-0064
I1026 09:52:02.159426 11260 camera_fxtof1.cpp:179] Camera initialized
I1026 09:52:02.211453 11260 camera_fxtof1.cpp:204] Chosen mode: near
I1026 09:52:02.211575 11260 camera_fxtof1.cpp:217] Camera range for mode: near is: 250 mm and 800 mm
I1026 09:52:02.211731 11260 camera_fxtof1.cpp:228] Found firmware for mode: near
I1026 09:52:02.211830 11260 camera_fxtof1.cpp:231] Firmware size: 14404 bytes
I1026 09:52:02.952630 11260 calibration_fxtof1.cpp:290] Camera intrinsic parameters:
    fx: 376.125
    fy: 375.899
    cx: 321.253
    cy: 226.786
W1026 09:52:06.587719 11271 addi9036_sensor.cpp:929] VIDIOC_DQBUF error errno: 22 error: Invalid argument
W1026 09:52:06.588886 11271 camera_fxtof1.cpp:391] Failed to get frame from device
^C
analog@analog-desktop:~/workspace/github/aditof_sdk/build/examples/aditof-demo$ 
[Question]
[1] I am facing following error messages and could not get frame data. Could you please kindly let me know how to avoid this error messages ?
[2] Before running "sudo ./aditof_demo", I did not run "config_pipe.sh". If I need to run it, please lt me know.
It is very helpful, if you can give me any advice.
Best regards,
H.Kashima
  • Hello,

    1) Did aditof-demo worked before updating the sdk (git pull)?

    Please try with the 2.0.1 tag. The commands would be:

    cd worgspace/github/aditof_sdk/build

    git reset --hard HEAD

    git checkout tags/v2.0.1

    make -j4

    cd examples/aditof-demo

    sudo ./aditof-demo

    2) You do not have to run config_pipe.sh

    Best regards,
    Septimiu.

  • Hello Septimiu,

    At the first time using prebuild sd card image, I also ran aditof_demo on the desktop of Xaiver NX.

    I got the same error messages.

    ------

    W1026 09:52:06.587719 11271 addi9036_sensor.cpp:929] VIDIOC_DQBUF error errno: 22 error: Invalid argument
    W1026 09:52:06.588886 11271 camera_fxtof1.cpp:391] Failed to get frame from device

    ------

    I will test tag 2.0.1 and get back to you soon.

    Best regards,

    H.Kashima

  • Hello Septimiu,

    I tried tag 2.0.1, but unfortunately I got the same error message.

    ------

    W1027 03:33:06.499054 9839 addi9036_sensor.cpp:868] VIDIOC_DQBUF error errno: 22 error: Invalid argument
    W1027 03:33:06.499277 9839 camera_fxtof1.cpp:372] Failed to get frame from device

    ------

    Please also look into the total log shown below.

    analog@analog-desktop:~/workspace/github/aditof_sdk/build$ git reset --hard HEAD
    HEAD is now at 0f0c7427 Merge branch 'master' of https://github.com/analogdevicesinc/aditof_sdk
    analog@analog-desktop:~/workspace/github/aditof_sdk/build$ git checkout tags/v2.0.1
    warning: unable to unlink 'sdk/src/cameras/3d-smart-camera/basecode.h': Permission denied
    warning: unable to unlink 'sdk/src/cameras/3d-smart-camera/calibration_3d_smart.cpp': Permission denied
    warning: unable to unlink 'sdk/src/cameras/3d-smart-camera/calibration_3d_smart.h': Permission denied
    warning: unable to unlink 'sdk/src/cameras/3d-smart-camera/camera_3d_smart.cpp': Permission denied
    warning: unable to unlink 'sdk/src/cameras/3d-smart-camera/camera_3d_smart.h': Permission denied
    warning: unable to unlink 'sdk/src/cameras/3d-smart-camera/jetson/sensor_enumerator_jetson.cpp': Permission denied
    warning: unable to unlink 'sdk/src/cameras/3d-smart-camera/jetson/target_definitions.h': Permission denied
    warning: unable to unlink 'sdk/src/cameras/3d-smart-camera/sensor_names.h': Permission denied
    Note: checking out 'tags/v2.0.1'.
    
    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.
    
    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:
    
      git checkout -b <new-branch-name>
    
    HEAD is now at bacd5227 sdk, apps: format code
    analog@analog-desktop:~/workspace/github/aditof_sdk/build$ sudo git checkout tags/v2.0.1
    [sudo] password for analog: 
    HEAD is now at bacd5227 sdk, apps: format code
    analog@analog-desktop:~/workspace/github/aditof_sdk/build$ make -j4
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/analog/workspace/github/aditof_sdk/build
    [  2%] Running C++ protocol buffer compiler on src/connections/network/buffer.proto
    /home/analog/workspace/github/aditof_sdk/build/sdk/buffer.pb.cc: Permission deniedsdk/CMakeFiles/aditof.dir/build.make:62: recipe for target 'sdk/buffer.pb.cc' failed
    make[2]: *** [sdk/buffer.pb.cc] Error 1
    CMakeFiles/Makefile2:117: recipe for target 'sdk/CMakeFiles/aditof.dir/all' failed
    make[1]: *** [sdk/CMakeFiles/aditof.dir/all] Error 2
    Makefile:129: recipe for target 'all' failed
    make: *** [all] Error 2
    analog@analog-desktop:~/workspace/github/aditof_sdk/build$ sudo make -j4
    [  2%] Running C++ protocol buffer compiler on src/connections/network/buffer.proto
    Scanning dependencies of target aditof
    [  4%] Building CXX object sdk/CMakeFiles/aditof.dir/src/filters_factory.cpp.o
    [  6%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame_impl.cpp.o
    [  9%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame.cpp.o
    [ 11%] Building CXX object sdk/CMakeFiles/aditof.dir/src/frame_operations.cpp.o
    [ 13%] Building CXX object sdk/CMakeFiles/aditof.dir/src/sensor_enumerator_factory.cpp.o
    [ 16%] Building CXX object sdk/CMakeFiles/aditof.dir/src/system.cpp.o
    [ 18%] Building CXX object sdk/CMakeFiles/aditof.dir/src/system_impl.cpp.o
    [ 20%] Building CXX object sdk/CMakeFiles/aditof.dir/src/utils.cpp.o
    [ 23%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/target/addi9036_sensor.cpp.o
    [ 25%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/target/adt7410_sensor.cpp.o
    [ 27%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/target/eeprom.cpp.o
    [ 30%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/target/target_sensor_enumerator.cpp.o
    [ 32%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/target/tmp10x_sensor.cpp.o
    [ 34%] Building CXX object sdk/CMakeFiles/aditof.dir/src/cameras/ad-fxtof1-ebz/calibration_fxtof1.cpp.o
    [ 37%] Building CXX object sdk/CMakeFiles/aditof.dir/src/cameras/ad-fxtof1-ebz/camera_fxtof1.cpp.o
    [ 39%] Building CXX object sdk/CMakeFiles/aditof.dir/src/cameras/ad-fxtof1-ebz/xavier_nx/sensor_enumerator_xaviernx.cpp.o
    [ 41%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/usb/usb_utils.cpp.o
    [ 44%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/utils/connection_validator.cpp.o
    [ 46%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network.cpp.o
    In file included from /home/analog/workspace/github/aditof_sdk/sdk/src/cameras/ad-fxtof1-ebz/camera_fxtof1.cpp:32:0:
    /home/analog/workspace/github/aditof_sdk/sdk/src/cameras/ad-fxtof1-ebz/camera_fxtof1.h: In constructor ‘CameraFxTof1::CameraFxTof1(std::shared_ptr<aditof::DepthSensorInterface>, std::vector<std::shared_ptr<aditof::StorageInterface> >&, std::vector<std::shared_ptr<aditof::TemperatureSensorInterface> >&)’:
    /home/analog/workspace/github/aditof_sdk/sdk/src/cameras/ad-fxtof1-ebz/camera_fxtof1.h:100:17: warning: ‘CameraFxTof1::m_revision’ will be initialized after [-Wreorder]
         std::string m_revision;
                     ^~~~~~~~~~
    /home/analog/workspace/github/aditof_sdk/sdk/src/cameras/ad-fxtof1-ebz/camera_fxtof1.h:91:10: warning:   ‘bool CameraFxTof1::m_devProgrammed’ [-Wreorder]
         bool m_devProgrammed;
              ^~~~~~~~~~~~~~~
    /home/analog/workspace/github/aditof_sdk/sdk/src/cameras/ad-fxtof1-ebz/camera_fxtof1.cpp:65:1: warning:   when initialized here [-Wreorder]
     CameraFxTof1::CameraFxTof1(
     ^~~~~~~~~~~~
    [ 48%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network_depth_sensor.cpp.o
    [ 51%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network_sensor_enumerator.cpp.o
    [ 53%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network_storage.cpp.o
    [ 55%] Building CXX object sdk/CMakeFiles/aditof.dir/src/connections/network/network_temperature_sensor.cpp.o
    [ 58%] Building CXX object sdk/CMakeFiles/aditof.dir/buffer.pb.cc.o
    [ 60%] Linking CXX shared library libaditof.so
    [ 60%] Built target aditof
    Scanning dependencies of target first-frame-network
    Scanning dependencies of target first-frame
    Scanning dependencies of target aditof-demo
    Scanning dependencies of target aditofpython
    [ 62%] Building CXX object examples/first-frame-network/CMakeFiles/first-frame-network.dir/main.cpp.o
    [ 65%] Building CXX object examples/first-frame/CMakeFiles/first-frame.dir/main.cpp.o
    [ 67%] Building CXX object bindings/python/CMakeFiles/aditofpython.dir/aditofpython.cpp.o
    [ 69%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/aditofdemorecorder.cpp.o
    [ 72%] Linking CXX executable first-frame-network
    [ 74%] Linking CXX executable first-frame
    [ 74%] Built target first-frame
    [ 74%] Built target first-frame-network
    [ 76%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/aditofdemoview.cpp.o
    Scanning dependencies of target aditof-opencv-dnn
    [ 79%] Building CXX object bindings/opencv/dnn/CMakeFiles/aditof-opencv-dnn.dir/main.cpp.o
    [ 81%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/aditofdemocontroller.cpp.o
    [ 83%] Building CXX object examples/aditof-demo/CMakeFiles/aditof-demo.dir/main.cpp.o
    [ 86%] Linking CXX executable aditof-opencv-dnn
    [ 86%] Built target aditof-opencv-dnn
    Scanning dependencies of target aditof-opencv-maskrcnn
    [ 88%] Building CXX object bindings/opencv/maskrcnn/CMakeFiles/aditof-opencv-maskrcnn.dir/main.cpp.o
    Scanning dependencies of target aditof-opencv-imshow
    [ 90%] Building CXX object bindings/opencv/imshow/CMakeFiles/aditof-opencv-imshow.dir/main.cpp.o
    [ 93%] Linking CXX executable aditof-demo
    [ 93%] Built target aditof-demo
    /home/analog/workspace/github/aditof_sdk/bindings/opencv/maskrcnn/main.cpp: In function ‘void postprocess(const cv::Mat&, cv::Mat&, const std::vector<cv::Mat>&)’:
    /home/analog/workspace/github/aditof_sdk/bindings/opencv/maskrcnn/main.cpp:367:15: warning: unused variable ‘numClasses’ [-Wunused-variable]
         const int numClasses = outMasks.size[1];
                   ^~~~~~~~~~
    [ 95%] Linking CXX executable aditof-opencv-imshow
    [ 95%] Built target aditof-opencv-imshow
    [ 97%] Linking CXX executable aditof-opencv-maskrcnn
    [ 97%] Built target aditof-opencv-maskrcnn
    [100%] Linking CXX shared module aditofpython.cpython-36m-aarch64-linux-gnu.so
    [100%] Built target aditofpython
    analog@analog-desktop:~/workspace/github/aditof_sdk/build$ cd examples/aditof-demo
    analog@analog-desktop:~/workspace/github/aditof_sdk/build/examples/aditof-demo$ dir
    aditof-demo  CMakeFiles  cmake_install.cmake  config_pipe.sh  Makefile
    analog@analog-desktop:~/workspace/github/aditof_sdk/build/examples/aditof-demo$ sudo ./aditod-demo
    sudo: ./aditod-demo: command not found
    analog@analog-desktop:~/workspace/github/aditof_sdk/build/examples/aditof-demo$ sudo ./aditof-demo
    I1027 03:32:55.799063  9829 sensor_enumerator_xaviernx.cpp:49] Looking for devices on the target: Xavier NX
    I1027 03:32:55.801048  9829 camera_fxtof1.cpp:128] Initializing camera
    I1027 03:32:55.801102  9829 addi9036_sensor.cpp:140] Opening device
    I1027 03:32:55.801208  9829 addi9036_sensor.cpp:158] Looking for the following cards:
    I1027 03:32:55.801268  9829 addi9036_sensor.cpp:160] vi-output, addi9036 9-0064
    I1027 03:32:55.801302  9829 addi9036_sensor.cpp:160] vi-output, addi9036 10-0064
    I1027 03:32:56.042515  9829 camera_fxtof1.cpp:179] Camera initialized
    I1027 03:32:56.045106  9829 addi9036_sensor.cpp:257] Starting device 0
    W1027 03:32:56.050087  9829 addi9036_sensor.cpp:276] VIDIOC_STREAMON error errno: 22 error: Invalid argument
    I1027 03:32:56.125151  9829 camera_fxtof1.cpp:210] Chosen mode: near
    I1027 03:32:56.125267  9829 camera_fxtof1.cpp:223] Camera range for mode: near is: 250 mm and 800 mm
    I1027 03:32:56.125393  9829 camera_fxtof1.cpp:234] Found firmware for mode: near
    I1027 03:32:56.125459  9829 camera_fxtof1.cpp:237] Firmware size: 14404 bytes
    I1027 03:32:59.429152  9829 calibration_fxtof1.cpp:290] Camera intrinsic parameters:
        fx: 321.253
        fy: 0
        cx: 376.125
        cy: 0
    W1027 03:33:06.499054  9839 addi9036_sensor.cpp:868] VIDIOC_DQBUF error errno: 22 error: Invalid argument
    W1027 03:33:06.499277  9839 camera_fxtof1.cpp:372] Failed to get frame from device
    ^C
    analog@analog-desktop:~/workspace/github/aditof_sdk/build/examples/aditof-demo$ 

    Could you please kindly give me any advice to avoid these error messages ?

    Best regards,

    H.Kashima

  • Hello,

    I see that you have some permission conflicts, the easiest way to avoid them is to reflash the image and run again the commands listed above.

    Please make sure you do the following before starting the board:

    1) connect the board to the interposer with this cable:

    https://www.adafruit.com/product/2087

    2) use an external power supply for the camera's interposer (2A)

    3) connect the interposer to a power supply before powering on the board

    4) Do the commands listed above to make sure that you are at tag 2.0.1

    Best regards,
    Septimiu.

  • Hello Septimiu,

    When I ran "git checkout tags/v2.0.1", I got the error message as below.

    ------

    desktop:~/workspace/github/aditof_sdk/build$ sudo git checkout tags/v2.0.1

    error: pathspec 'tags/v2.0.1' did not match any file(s)

    ------

    [The steps I done.]

    [1] I reflashed the sd image and inserted the sd card into Xavier NX board.

    [2] I checked following points that you have requested.

            1) connect the board to the interposer with this cable:

              https://www.adafruit.com/product/2087

            2) use an external power supply for the camera's interposer (2A)

            3) connect the interposer to a power supply before powering on the board

    [3] I ran the commands as below.

    analog@analog-desktop:~/workspace/github/aditof_sdk/build$ sudo git reset --hard HEAD
    [sudo] password for analog: 
    HEAD is now at ebe11711 Update TEMP_SENSOR_DEV_PATH for xaviernx and fxtof1
    analog@analog-desktop:~/workspace/github/aditof_sdk/build$ sudo git checkout tags/v2.0.1
    error: pathspec 'tags/v2.0.1' did not match any file(s) known to git.
    analog@analog-desktop:~/workspace/github/aditof_sdk/build$ git checkout tags/v2.0.1
    error: pathspec 'tags/v2.0.1' did not match any file(s) known to git.
    analog@analog-desktop:~/workspace/github/aditof_sdk/build$
    

    Did I need to run "git pull" or other commands before I ran "sudo git reset --hard HEAD" ?

    Could you please kindly help me to avoid the error message "error: pathspec 'tags/v2.0.1' did not match any file(s)" ?

    Thanks & Best regards,

    H.Kashima

  • Hello, yes you need to do a git pull before doing checkout at v2.0.0 tag. Please do not use sudo with git commands, you might encounter permission errors.

  • Hello Septimiu,

    Thanks for your replies.

    Are the commands below all right ?

    ------

    cd workspace/github/aditof_sdk/

    git pull

    cd build

    git reset --hard HEAD

    git checkout tags/v2.0.1

    make -j4

    cd examples/aditof-demo

    sudo ./aditof-demo

    ------

    Should I run "cmake -DXAVIERNX=1 -DUSE_FXTOF1=1 .." before "cmake -j4" ?

    Best regards,

    H.Kashima

  • Hello, this is the correct order:

    cd workspace/github/aditof_sdk/

    git reset --hard HEAD

    git pull

    cd build

    git checkout tags/v2.0.1

    make -j4

    cd examples/aditof-demo

    sudo ./aditof-demo

    You do not need to run cmake -DXAVIERNX=1 -DUSE_FXTOF1=1 .. because it was already stored in the cmake cache in the prebuild image.

    Best regards,
    Septimiu.

  • Hi Septimiu,

    Thanks for your replies.

    The issue has been solved last week by our customer.

    Apologies, the issue was not from aditof_sdk, but was from our customer's Xavier NX board.

    It seemed that there was a hardware issue on their Xavier NX board.

    Thanks & Best regards,

    H.Kashima