Please note, the libaditof GitHub Wiki is available with additional documentation.
ADTF Time-of-Flight Imager
├─ Single or Dual ADSD3500 v8.1.0
├─ ToF-drivers v7.0.0
└─ libaditof v7.1.0
└─ Depth Compute Library 5.1.0
- Single or Dual ADSD3500 v8.1.0: for the library under SLA contact tof@analog.com
- ToF-driver v7.0.0:
- libaditof v7.1.0: https://github.com/analogdevicesinc/libaditof/tree/rel-7.1.0
- Depth Conpute LIbrary v5.1.0: for the library under SLA contact tof@analog.com
For reference, the latest Eval Kit, ADCAM 1.0.0, is available here:
- Source Code: https://github.com/analogdevicesinc/ADCAM/tree/rel-1.0.0
- Releases: https://github.com/analogdevicesinc/ADCAM/releases
Note, the ADSD3500 Firmware and Depth Compute Libraries included with the evaluation kit are provided for evaluation only.
The ADI ToF SDK is designed to support ADI's ToF hardware.
ToF Imager (ADSD3100 or ADSD3030)
||
||
ADSD3500 (Dual or Single)
||
|| (MIPI for Frame Data)
|| (I2C or SPI for Control)
||
------------------------------------------
| (Linux)
Host Driver
|
|
libaditof
|| - Hardware Connection
| - Software Connection
The SDK provides an API to control the ToF camera, AB, and depth frame streams.
Repos using libaditof:
Note, prior to committing to the repo it is important to format the source code, see the code formatting.
Note: all code must be formatted by clang-format and issues via clang-tidy must be addressed.
See the documents:
- CMake
- g++
- Python 3 - note, we are assuming Python 3.10 in this document, change as needed for your setup
- Doxygen - for documentation generation
- Graphviz - for documentation generation
Note, python3.10-dev is specific to the NVIDIA Jetson Orin Nano Dev Kit Jetpack 6.2.
If your Linux does not use Python 3.10 you will need to change python3.10-dev to reflect the version of Linux on your system.
sudo apt update
sudo apt install cmake g++ \
doxygen graphviz \
python3.10-devIn addition the depth compute libraries are required.
You can get the two library from the ADCAM release software, but please note in which case it is under an evaluation license.
For a non-eval license please contact us at tof@analog.com.
The two libraries files are:
- libtofi_compute.so
- libtofi_config.so
There are two options for pointing these libraries:
- Set the LIBTOFI_LIBDIR_PATH enviroment variable to the path with these files.
- Place the libraries must be in a folder called libs that in one level below the cloned ADCAM repo folder. For example:
(aditofpython_env) analog@analog-desktop:~/dev/ADCAM$ pwd
/home/analog/dev/ADCAM
(aditofpython_env) analog@analog-desktop:~/dev/ADCAM$ tree ../libs
../libs
├── libtofi_compute.so
└── libtofi_config.so
git clone https://github.com/analogdevicesinc/libaditof
cd libaditof
git checkout <branch or tag>
mkdir build && cd build
cmake -DNVIDIA=1 ..
cmake --build . --config RELEASE -j 6
SDK binary and associated softlinks are hare *build/libaditof.so **
See windows-build.md.
Use data_collect with --scf to capture the live camera parameters to a JSON file:
./data_collect --m 0 --n 1 --scf /path/to/adcam_config.jsonThis saves all active depth parameters (JBLF, thresholds, FPS, etc.) for the given mode. Run once per mode and combine as needed.
The SDK looks for adcam_config.json in the following order:
- Same directory as the executable — place
adcam_config.jsonnext to your binary and it is picked up automatically. ADCAM_CONFIG_PATHenvironment variable — set this to the full path of the config file to use it from any location:To make this permanent, add theexport ADCAM_CONFIG_PATH=/path/to/adcam_config.json ./your_appexportline to~/.bashrc. If the file is missing at runtime the SDK logs a warning and falls back to factory defaults automatically.- Factory defaults — if neither of the above is found, the SDK runs with built-in defaults.
The explicit path passed to camera->initialize("/path/to/config.json") always takes priority over auto-discovery.
For the build options in CMakeLists.txt see cmake/readme.md.
Test infrastructure using GoogleTests and PyTest has been added.
See tests/README.md.