Voxel
0.5.6
|
This is a generic ToFCamera which is not strictly dependent on TI's ToF chips. More...
#include <ToFCameraBase.h>
Protected Member Functions | |
virtual bool | _captureRawUnprocessedFrame (RawFramePtr &rawFrame) |
virtual bool | _convertToDepthFrame (const RawFramePtr &rawFrame, DepthFramePtr &depthFrame) |
virtual bool | _start () |
virtual bool | _stop () |
virtual bool | _initStartParams () |
virtual bool | _getAmplitudeNormalizingFactor (float &factor)=0 |
virtual bool | _getDepthScalingFactor (float &factor)=0 |
bool | _init () |
virtual bool | _onReset () |
Protected Member Functions inherited from Voxel::DepthCamera | |
bool | _addParameters (const Vector< ParameterPtr > ¶ms) |
virtual bool | _callbackAndContinue (uint32_t &callBackTypesToBeCalled, FrameType type, const Frame &frame) |
virtual bool | _processRawFrame (const RawFramePtr &rawFrameInput, RawFramePtr &rawFrameOutput)=0 |
virtual bool | _convertToPointCloudFrame (const DepthFramePtr &depthFrame, PointCloudFramePtr &pointCloudFrame) |
virtual void | _captureLoop () |
void | _captureThreadWrapper () |
bool | _writeToFrameStream (RawFramePtr &rawUnprocessed) |
template<typename T > | |
bool | _get (const String &name, T &value, bool refresh=false) const |
template<typename T > | |
bool | _set (const String &name, const T &value) |
virtual bool | _setFrameRate (const FrameRate &r)=0 |
virtual bool | _getFrameRate (FrameRate &r) const =0 |
virtual bool | _setFrameSize (const FrameSize &s)=0 |
virtual bool | _getFrameSize (FrameSize &s) const =0 |
virtual bool | _getMaximumFrameSize (FrameSize &s) const =0 |
virtual bool | _getMaximumFrameRate (FrameRate &frameRate, const FrameSize &forFrameSize) const =0 |
virtual bool | _getSupportedVideoModes (Vector< SupportedVideoMode > &supportedVideoModes) const =0 |
virtual bool | _getMaximumVideoMode (VideoMode &videoMode) const =0 |
virtual bool | _getBytesPerPixel (uint &bpp) const =0 |
virtual bool | _setBytesPerPixel (const uint &bpp)=0 |
virtual bool | _getROI (RegionOfInterest &roi)=0 |
virtual bool | _setROI (const RegionOfInterest &roi)=0 |
virtual bool | _allowedROI (String &message)=0 |
virtual bool | _getFieldOfView (float &fovHalfAngle) const =0 |
void | _makeID () |
virtual bool | _reset ()=0 |
virtual bool | _applyConfigParams (const ConfigSet *params) |
virtual bool | _saveCurrentProfileID (const int id)=0 |
virtual bool | _getCurrentProfileID (int &id)=0 |
bool | _init () |
Map< String, CalibrationInformation > & | _getCalibrationInformationStructure () |
Additional Inherited Members | |
Public Types inherited from Voxel::DepthCamera | |
enum | FrameType { FRAME_RAW_FRAME_UNPROCESSED = 0, FRAME_RAW_FRAME_PROCESSED = 1, FRAME_DEPTH_FRAME = 2, FRAME_XYZI_POINT_CLOUD_FRAME = 3, FRAME_TYPE_COUNT = 4 } |
typedef Function< void(DepthCamera &camera, const Frame &frame, FrameType callBackType)> | CallbackType |
Public Attributes inherited from Voxel::DepthCamera | |
MainConfigurationFile | configFile |
This is a generic ToFCamera which is not strictly dependent on TI's ToF chips.
Definition at line 22 of file ToFCameraBase.h.
|
inline |
Definition at line 43 of file ToFCameraBase.h.
|
inlinevirtual |
Definition at line 49 of file ToFCameraBase.h.
|
protectedvirtual |
Implements Voxel::DepthCamera.
Definition at line 47 of file ToFCameraBase.cpp.
References _rawDataFrame, Voxel::DepthCamera::_streamer, and Voxel::DepthCamera::isInitialized().
|
protectedvirtual |
Implements Voxel::DepthCamera.
Definition at line 61 of file ToFCameraBase.cpp.
References _tofDepthFrameGenerator, LensCalibrationTest::p1, and LensCalibrationTest::p2.
|
protectedpure virtual |
Implemented in Voxel::TI::ToFCamera.
Referenced by _initStartParams().
|
protectedpure virtual |
Implemented in Voxel::TI::ToFCamera.
Referenced by _initStartParams().
|
protected |
Definition at line 15 of file ToFCameraBase.cpp.
References Voxel::DepthCamera::_init().
Referenced by Voxel::TI::ToFCamera::_init().
|
protectedvirtual |
Reimplemented in Voxel::TI::ToFCamera, Voxel::TI::ToFTintinCamera, Voxel::TI::ToFCalculusCamera, Voxel::TI::TintinCDKCamera, Voxel::TI::VoxelDCamera, Voxel::TI::HaddockCDKCamera, Voxel::TI::CalculusCDKCamera, Voxel::TI::Voxel14Camera, Voxel::TI::RTS5825Camera, and Voxel::TI::ToFHaddockCamera.
Definition at line 105 of file ToFCameraBase.cpp.
References _getAmplitudeNormalizingFactor(), _getDepthScalingFactor(), _tofDepthFrameGenerator, Voxel::LOG_ERROR, and Voxel::logger.
Referenced by Voxel::TI::ToFCamera::_initStartParams(), and _start().
|
protectedvirtual |
Implements Voxel::DepthCamera.
Definition at line 24 of file ToFCameraBase.cpp.
References Voxel::VideoMode::frameRate, Voxel::VideoMode::frameSize, Voxel::VideoMode::getFrameRate(), Voxel::DepthCamera::getFrameRate(), Voxel::DepthCamera::getFrameSize(), Voxel::DepthCamera::getMaximumVideoMode(), Voxel::DepthCamera::setFrameRate(), and Voxel::DepthCamera::setFrameSize().
|
protectedvirtual |
Implements Voxel::DepthCamera.
Definition at line 78 of file ToFCameraBase.cpp.
References _initStartParams(), Voxel::DepthCamera::_streamer, Voxel::VideoMode::frameRate, Voxel::VideoMode::frameSize, Voxel::VideoMode::getFrameRate(), Voxel::DepthCamera::getFrameRate(), Voxel::DepthCamera::getFrameSize(), Voxel::FrameSize::height, Voxel::DepthCamera::isInitialized(), Voxel::LOG_ERROR, Voxel::LOG_INFO, Voxel::logger, and Voxel::FrameSize::width.
|
protectedvirtual |
Implements Voxel::DepthCamera.
Definition at line 122 of file ToFCameraBase.cpp.
References Voxel::DepthCamera::_streamer, and Voxel::DepthCamera::isInitialized().
|
protected |
Definition at line 25 of file ToFCameraBase.h.
Referenced by _captureRawUnprocessedFrame().
|
protected |
Definition at line 40 of file ToFCameraBase.h.
Referenced by _convertToDepthFrame(), _initStartParams(), and Voxel::TI::ToFCamera::ToFCamera().