35 #include "aditof/adsd_errs.h" 36 #include "camera_definitions.h" 37 #include "sdk_exports.h" 38 #include "status_definitions.h" 48 class DepthSensorInterface;
59 virtual ~
Camera() =
default;
68 virtual Status initialize(
const std::string &configFilepath = {}) = 0;
75 virtual Status start() = 0;
93 virtual Status setMode(
const std::string &mode,
94 const std::string &modeFilename = {}) = 0;
104 getAvailableModes(std::vector<std::string> &availableModes)
const = 0;
111 virtual Status setFrameType(
const std::string &frameType) = 0;
118 virtual Status getIniParams(std::map<std::string, float> ¶ms) = 0;
125 virtual Status setIniParams(std::map<std::string, float> ¶ms) = 0;
132 virtual Status adsd3500SetIniParams(
133 const std::map<std::string, float> &iniKeyValPairs) = 0;
140 virtual Status getAvailableFrameTypes(
141 std::vector<std::string> &availableFrameTypes)
const = 0;
149 virtual Status getFrameTypeNameFromId(
int id, std::string &name)
const = 0;
171 getAvailableControls(std::vector<std::string> &controls)
const = 0;
179 virtual Status setControl(
const std::string &control,
180 const std::string &value) = 0;
188 virtual Status getControl(
const std::string &control,
189 std::string &value)
const = 0;
196 virtual std::shared_ptr<DepthSensorInterface> getSensor() = 0;
205 virtual Status enableXYZframe(
bool enable) = 0;
213 virtual Status saveModuleCFG(
const std::string &filepath)
const = 0;
221 virtual Status saveModuleCCB(
const std::string &filepath) = 0;
229 virtual Status enableDepthCompute(
bool enable) = 0;
237 virtual Status adsd3500UpdateFirmware(
const std::string &fwFilePath) = 0;
244 virtual Status adsd3500SetToggleMode(
int mode) = 0;
250 virtual Status adsd3500ToggleFsync() = 0;
257 virtual Status adsd3500SetABinvalidationThreshold(
int threshold) = 0;
264 virtual Status adsd3500GetABinvalidationThreshold(
int &threshold) = 0;
271 virtual Status adsd3500SetConfidenceThreshold(
int threshold) = 0;
278 virtual Status adsd3500GetConfidenceThreshold(
int &threshold) = 0;
285 virtual Status adsd3500SetJBLFfilterEnableState(
bool enable) = 0;
292 virtual Status adsd3500GetJBLFfilterEnableState(
bool &enabled) = 0;
299 virtual Status adsd3500SetJBLFfilterSize(
int size) = 0;
306 virtual Status adsd3500GetJBLFfilterSize(
int &size) = 0;
313 virtual Status adsd3500SetRadialThresholdMin(
int threshold) = 0;
320 virtual Status adsd3500GetRadialThresholdMin(
int &threshold) = 0;
327 virtual Status adsd3500SetRadialThresholdMax(
int threshold) = 0;
334 virtual Status adsd3500GetRadialThresholdMax(
int &threshold) = 0;
341 virtual Status adsd3500GetSensorTemperature(uint16_t &tmpValue) = 0;
348 virtual Status adsd3500GetLaserTemperature(uint16_t &tmpValue) = 0;
355 virtual Status adsd3500GetFirmwareVersion(std::string &fwVersion,
356 std::string &fwHash) = 0;
363 virtual Status adsd3500SetMIPIOutputSpeed(uint16_t speed) = 0;
370 virtual Status adsd3500GetMIPIOutputSpeed(uint16_t &speed) = 0;
377 virtual Status adsd3500GetImagerErrorCode(uint16_t &errcode) = 0;
384 virtual Status adsd3500SetVCSELDelay(uint16_t delay) = 0;
391 virtual Status adsd3500GetVCSELDelay(uint16_t &delay) = 0;
398 virtual Status adsd3500SetJBLFMaxEdgeThreshold(uint16_t threshold) = 0;
405 virtual Status adsd3500SetJBLFABThreshold(uint16_t threshold) = 0;
412 virtual Status adsd3500SetJBLFGaussianSigma(uint16_t value) = 0;
419 virtual Status adsd3500GetJBLFGaussianSigma(uint16_t &value) = 0;
426 virtual Status adsd3500SetJBLFExponentialTerm(uint16_t value) = 0;
433 virtual Status adsd3500GetJBLFExponentialTerm(uint16_t &value) = 0;
440 virtual Status adsd3500GetFrameRate(uint16_t &fps) = 0;
447 virtual Status adsd3500SetFrameRate(uint16_t fps) = 0;
454 virtual Status adsd3500SetEnableEdgeConfidence(uint16_t value) = 0;
462 adsd3500GetTemperatureCompensationStatus(uint16_t &value) = 0;
469 virtual Status adsd3500SetEnablePhaseInvalidation(uint16_t value) = 0;
476 virtual Status adsd3500SetEnableTemperatureCompensation(uint16_t value) = 0;
483 virtual aditof::Status adsd3500SetEnableMetadatainAB(uint16_t value) = 0;
490 virtual aditof::Status adsd3500GetEnableMetadatainAB(uint16_t &value) = 0;
498 virtual Status adsd3500SetGenericTemplate(uint16_t reg, uint16_t value) = 0;
506 virtual Status adsd3500GetGenericTemplate(uint16_t reg,
507 uint16_t &value) = 0;
514 virtual Status adsd3500GetStatus(
int &chipStatus,
int &imagerStatus) = 0;
524 virtual Status readSerialNumber(std::string &serialNumber,
525 bool useCacheValue =
false) = 0;
Manipulates the underlying camera system.
ImagerType
Types of imagers.
Status
Status of any operation that the TOF sdk performs.
Describes the properties of a camera.