Time-of-Flight-SDK
|
Manipulates the underlying camera system. More...
#include <camera.h>
Public Member Functions | |
virtual | ~Camera ()=default |
Destructor. | |
virtual Status | initialize (const std::string &configFilepath={})=0 |
Initialize the camera. This is required before performing any operation on the camera. More... | |
virtual Status | start ()=0 |
Start the camera. This starts the streaming of data from the camera. More... | |
virtual Status | stop ()=0 |
Stop the camera. This makes the camera to stop streaming. More... | |
virtual Status | setMode (const std::string &mode, const std::string &modeFilename={})=0 |
Puts the camera into the given mode. DEPRECATED! NOTE: This method is deprecated. Use 'setFrameType' instead. More... | |
virtual Status | getAvailableModes (std::vector< std::string > &availableModes) const =0 |
Returns all the modes that are supported by the camera. DEPRECATED! NOTE: This method is deprecated. Use 'getAvailableFrameTypes' instead. More... | |
virtual Status | setFrameType (const std::string &frameType)=0 |
Set the camera frame type to the given type. More... | |
virtual Status | getIniParams (std::map< std::string, float > ¶ms)=0 |
Get the Depth Compute Library ini parameters. More... | |
virtual Status | setIniParams (std::map< std::string, float > ¶ms)=0 |
Set the Depth Compute Library ini parameters. More... | |
virtual Status | adsd3500SetIniParams (const std::map< std::string, float > &iniKeyValPairs)=0 |
Set the adsd3500 ini parameters. More... | |
virtual Status | getAvailableFrameTypes (std::vector< std::string > &availableFrameTypes) const =0 |
Returns all the frame types that are supported by the camera. More... | |
virtual Status | getFrameTypeNameFromId (int id, std::string &name) const =0 |
Returns the name of the frame type for the given ID. More... | |
virtual Status | requestFrame (Frame *frame)=0 |
Captures data from the camera and assigns it to the given frame. More... | |
virtual Status | getDetails (CameraDetails &details) const =0 |
Gets the current details of the camera. More... | |
virtual Status | getAvailableControls (std::vector< std::string > &controls) const =0 |
Gets the camera's list of controls. More... | |
virtual Status | setControl (const std::string &control, const std::string &value)=0 |
Sets a specific camera control. More... | |
virtual Status | getControl (const std::string &control, std::string &value) const =0 |
Gets the value of a specific camera control. More... | |
virtual std::shared_ptr< DepthSensorInterface > | getSensor ()=0 |
Gets the sensor of the camera. This gives direct access to low level configuration of the camera sensor. More... | |
virtual Status | enableXYZframe (bool enable)=0 |
Enable the generation of a XYZ frame. The XYZ frame can be enabled or disabled through .ini configuration file but if this method is explicitly called then it will override the option in the .ini file. By default XYZ frame is disabled. More... | |
virtual Status | saveModuleCFG (const std::string &filepath) const =0 |
Save the CFG content which is obtained from module memory to a given file path. More... | |
virtual Status | saveModuleCCB (const std::string &filepath)=0 |
Save the CCB content which is obtained from module memory to a given file path. More... | |
virtual Status | enableDepthCompute (bool enable)=0 |
Enable or disable the depth processing on the frames received from the sensor Must be called after getFrame() where the depth processing happens. More... | |
virtual Status | adsd3500UpdateFirmware (const std::string &fwFilePath)=0 |
Update the firmware of ADSD3500 with the content found in the specified file. More... | |
virtual Status | adsd3500SetToggleMode (int mode)=0 |
Enables or disables FSYNC toggle for ADSD3500. More... | |
virtual Status | adsd3500ToggleFsync ()=0 |
Toggles ADSD3500 FSYNC once if automated FSYNC is disabled. More... | |
virtual Status | adsd3500SetABinvalidationThreshold (int threshold)=0 |
Set the AB invalidation threshold. More... | |
virtual Status | adsd3500GetABinvalidationThreshold (int &threshold)=0 |
Get the AB invalidation threshold. More... | |
virtual Status | adsd3500SetConfidenceThreshold (int threshold)=0 |
Set the confidence threshold. More... | |
virtual Status | adsd3500GetConfidenceThreshold (int &threshold)=0 |
Get the confidence threshold. More... | |
virtual Status | adsd3500SetJBLFfilterEnableState (bool enable)=0 |
Enable/disable the JBLF filter. More... | |
virtual Status | adsd3500GetJBLFfilterEnableState (bool &enabled)=0 |
Get the JBLF enabled state. More... | |
virtual Status | adsd3500SetJBLFfilterSize (int size)=0 |
Set the JBLF filter size. More... | |
virtual Status | adsd3500GetJBLFfilterSize (int &size)=0 |
Get the JBLF filter size. More... | |
virtual Status | adsd3500SetRadialThresholdMin (int threshold)=0 |
Set the radial threshold min. More... | |
virtual Status | adsd3500GetRadialThresholdMin (int &threshold)=0 |
Get the radial threshold min. More... | |
virtual Status | adsd3500SetRadialThresholdMax (int threshold)=0 |
Set the radial threshold max. More... | |
virtual Status | adsd3500GetRadialThresholdMax (int &threshold)=0 |
Get the radial threshold max. More... | |
virtual Status | adsd3500GetSensorTemperature (uint16_t &tmpValue)=0 |
Get the sensor temperature. More... | |
virtual Status | adsd3500GetLaserTemperature (uint16_t &tmpValue)=0 |
Get the laser temperature. More... | |
virtual Status | adsd3500GetFirmwareVersion (std::string &fwVersion, std::string &fwHash)=0 |
virtual Status | adsd3500SetMIPIOutputSpeed (uint16_t speed)=0 |
Set ADSD3500 MIPI output speed. More... | |
virtual Status | adsd3500GetMIPIOutputSpeed (uint16_t &speed)=0 |
Get ADSD3500 MIPI output speed. More... | |
virtual Status | adsd3500GetImagerErrorCode (uint16_t &errcode)=0 |
Get error code from the imager. More... | |
virtual Status | adsd3500SetVCSELDelay (uint16_t delay)=0 |
Set the delay for VCSEL - ADSD3100 imager only. More... | |
virtual Status | adsd3500GetVCSELDelay (uint16_t &delay)=0 |
Get the delay for VCSEL - ADSD3100 imager only. More... | |
virtual Status | adsd3500SetJBLFMaxEdgeThreshold (uint16_t threshold)=0 |
Set JBLF Max Edge Threshold. More... | |
virtual Status | adsd3500SetJBLFABThreshold (uint16_t threshold)=0 |
Get JBLF Max Edge Threshold. More... | |
virtual Status | adsd3500SetJBLFGaussianSigma (uint16_t value)=0 |
Set JBLF Gaussian Sigma. More... | |
virtual Status | adsd3500GetJBLFGaussianSigma (uint16_t &value)=0 |
Get JBLF Gaussian Sigma. More... | |
virtual Status | adsd3500SetJBLFExponentialTerm (uint16_t value)=0 |
Set JBLF Exponential Term. More... | |
virtual Status | adsd3500GetJBLFExponentialTerm (uint16_t &value)=0 |
Get JBLF Exponential Term. More... | |
virtual Status | adsd3500GetFrameRate (uint16_t &fps)=0 |
Get Frame Rate. More... | |
virtual Status | adsd3500SetFrameRate (uint16_t fps)=0 |
Set Frame Rate. More... | |
virtual Status | adsd3500SetEnableEdgeConfidence (uint16_t value)=0 |
Set Enable Edge Confidence. More... | |
virtual Status | adsd3500GetTemperatureCompensationStatus (uint16_t &value)=0 |
Get Temperature Compensation Status. More... | |
virtual Status | adsd3500SetEnablePhaseInvalidation (uint16_t value)=0 |
Set Enable Phase Invalidation. More... | |
virtual Status | adsd3500SetEnableTemperatureCompensation (uint16_t value)=0 |
Set Enable Temperature Compensation. More... | |
virtual aditof::Status | adsd3500SetEnableMetadatainAB (uint16_t value)=0 |
Set Enable Metadata in the AB frame. More... | |
virtual aditof::Status | adsd3500GetEnableMetadatainAB (uint16_t &value)=0 |
Get state of Enable Metadata in the AB frame. More... | |
virtual Status | adsd3500SetGenericTemplate (uint16_t reg, uint16_t value)=0 |
Generic ADSD3500 function for commands not defined in the SDK (yet) More... | |
virtual Status | adsd3500GetGenericTemplate (uint16_t reg, uint16_t &value)=0 |
Generic ADSD3500 function for commands not defined in the SDK (yet) More... | |
virtual Status | adsd3500GetStatus (int &chipStatus, int &imagerStatus)=0 |
Returns the chip status. More... | |
virtual Status | readSerialNumber (std::string &serialNumber, bool useCacheValue=false)=0 |
Read serial number from camera and update cache. More... | |
virtual Status | getImagerType (ImagerType &imagerType) const =0 |
Provides the type of the imager. More... | |
|
pure virtual |
Get the AB invalidation threshold.
[out] | threshold |
|
pure virtual |
Get the confidence threshold.
[out] | threshold |
|
pure virtual |
Get state of Enable Metadata in the AB frame.
[out] | value | - See "Get Output Metadata in AB Frame status" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Get the ASDSD3500 firmware version from the ADSD3500
[out] | fwVersion | - the ADSD3500 firmware version |
[out] | fwHash | - the ADSD3500 firmware git commit hash |
|
pure virtual |
Get Frame Rate.
[out] | fps | - See "Get Frame Rate" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Generic ADSD3500 function for commands not defined in the SDK (yet)
[in] | reg | - 16-bit ADSD3500 register |
[out] | value | - 16-bit value read from the register |
|
pure virtual |
Get error code from the imager.
[out] | errcode | - See "Get Imager Error Code" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Get JBLF Exponential Term.
[out] | value | - See "Get JBLF Exponential Term" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Get the JBLF enabled state.
[out] | enabled |
|
pure virtual |
Get the JBLF filter size.
[out] | size |
|
pure virtual |
Get JBLF Gaussian Sigma.
[out] | value | - See "Get JBLF Gaussian Sigma" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Get the laser temperature.
[out] | tmpValue | - Values in Celsius degree |
|
pure virtual |
Get ADSD3500 MIPI output speed.
[out] | speed | - See "Get MIPI Output Speed" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Get the radial threshold max.
[out] | threshold |
|
pure virtual |
Get the radial threshold min.
[out] | threshold |
|
pure virtual |
Get the sensor temperature.
[out] | tmpValue | - Values in Celsius degree |
|
pure virtual |
Returns the chip status.
[out] | chipStatus | - chip status (error) value |
[out] | imagerStatus | - imager status (error) value |
|
pure virtual |
Get Temperature Compensation Status.
[out] | value | - See "Get Temperature Compensation Status" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Get the delay for VCSEL - ADSD3100 imager only.
[out] | delay | - See "Get VCSEL Delay" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Set the AB invalidation threshold.
[in] | threshold |
|
pure virtual |
Set the confidence threshold.
[in] | threshold |
|
pure virtual |
Set Enable Edge Confidence.
[in] | value | - See "Set Enable Edge Confidence" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Set Enable Metadata in the AB frame.
[in] | value | - See "Enable/Disable Output Metadata in AB Frame" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Set Enable Phase Invalidation.
[out] | value | - See "Set Enable Phase Invalidation" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Set Enable Temperature Compensation.
[out] | value | - See "Set Enable Temperature Compensation" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Set Frame Rate.
[out] | fps | - See "Set Frame Rate" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Generic ADSD3500 function for commands not defined in the SDK (yet)
[in] | reg | - 16-bit ADSD3500 register |
[in] | value | - 16-bit value to write to the register |
|
pure virtual |
Set the adsd3500 ini parameters.
iniKeyValPairs | - a dictionary of parameters |
|
pure virtual |
Get JBLF Max Edge Threshold.
[out] | threshold | - See "Get JBLF Max Edge Threshold" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Set JBLF Exponential Term.
[in] | value | - See "Set JBLF Exponential Term" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Enable/disable the JBLF filter.
[in] | enable |
|
pure virtual |
Set the JBLF filter size.
[in] | size | - Supported sizes are: 3, 5, 7 |
|
pure virtual |
Set JBLF Gaussian Sigma.
[in] | value | - See "Set JBLF Gaussian Sigma" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Set JBLF Max Edge Threshold.
[in] | threshold | - See "Set JBLF Max Edge Threshold" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Set ADSD3500 MIPI output speed.
[in] | speed | - See "Set MIPI Output Speed" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Set the radial threshold max.
[in] | threshold |
|
pure virtual |
Set the radial threshold min.
[in] | threshold |
|
pure virtual |
Enables or disables FSYNC toggle for ADSD3500.
[in] | mode | - 2 = Fsync pin set as HiZ ; 1 = Toggle at user specified framerate ; 0 = Toggle controlled via adsd3500ToggleFsync ; |
|
pure virtual |
Set the delay for VCSEL - ADSD3100 imager only.
[in] | delay | - See "Set VCSEL Delay" at https://wiki.analog.com/resources/eval/user-guides/eval-adtf3175x-adsd3500 |
|
pure virtual |
Toggles ADSD3500 FSYNC once if automated FSYNC is disabled.
|
pure virtual |
Update the firmware of ADSD3500 with the content found in the specified file.
[in] | fwFilePath | - A path to a file (including file name and extension) where the firmware for adsd3500 is stored. |
|
pure virtual |
Enable or disable the depth processing on the frames received from the sensor Must be called after getFrame() where the depth processing happens.
[in] | enable | - set to true to enable depth processing. Set to false otherwise. |
|
pure virtual |
Enable the generation of a XYZ frame. The XYZ frame can be enabled or disabled through .ini configuration file but if this method is explicitly called then it will override the option in the .ini file. By default XYZ frame is disabled.
[in] | enable | - set to true to enable the generation of XYZ, set to false otherwise. |
|
pure virtual |
Gets the camera's list of controls.
[out] | controls |
|
pure virtual |
Returns all the frame types that are supported by the camera.
[out] | availableFrameTypes |
|
pure virtual |
Returns all the modes that are supported by the camera. DEPRECATED! NOTE: This method is deprecated. Use 'getAvailableFrameTypes' instead.
[out] | availableModes |
|
pure virtual |
Gets the value of a specific camera control.
[in] | control | - Control name |
[out] | value | - Control value |
|
pure virtual |
Gets the current details of the camera.
[out] | details |
|
pure virtual |
Returns the name of the frame type for the given ID.
id | - the ID of the frame type | |
[out] | name | - will be set with the name of the frame type in case of success |
|
pure virtual |
Provides the type of the imager.
[out] | imagerType | - Will be set with the imager type |
|
pure virtual |
Get the Depth Compute Library ini parameters.
params | - a dictionary of parameters |
|
pure virtual |
Gets the sensor of the camera. This gives direct access to low level configuration of the camera sensor.
|
pure virtual |
Initialize the camera. This is required before performing any operation on the camera.
configFilepath | - The JSON configuration files which should be specific to the given module. The expected value is a file name (including extension) or left empty. |
|
pure virtual |
Read serial number from camera and update cache.
[out] | serialNumber | - Will contain serial number |
[in] | useCacheValue | - If it is false it will read from camera and if it is true it will return serialNumber from cache |
Captures data from the camera and assigns it to the given frame.
frame | - The frame to which the camera data should be assign |
|
pure virtual |
Save the CCB content which is obtained from module memory to a given file path.
[in] | filepath | - A path to a file (including file name and extension) where the CCB should be stored. |
|
pure virtual |
Save the CFG content which is obtained from module memory to a given file path.
[in] | filepath | - A path to a file (including file name and extension) where the CFG should be stored. |
|
pure virtual |
Sets a specific camera control.
[in] | control | - Control name |
[in] | value | - Control value |
|
pure virtual |
Set the camera frame type to the given type.
frameType | - The frame type of the camera |
|
pure virtual |
Set the Depth Compute Library ini parameters.
params | - a dictionary of parameters |
|
pure virtual |
Puts the camera into the given mode. DEPRECATED! NOTE: This method is deprecated. Use 'setFrameType' instead.
mode | - The mode of the camera |
modeFilename | - When there is a need to use a custom mode then mode parameter needs to be set to 'custom' and a firmware file needs to be provided. |
|
pure virtual |
Start the camera. This starts the streaming of data from the camera.
|
pure virtual |
Stop the camera. This makes the camera to stop streaming.