Class for lidar data file reader,.
Each synced dataloader must derive from SyncImplDataLoader and implement C++ interface: startImpl(...) readDataImpl(...) flushImpl(...) stopImpl(...)
Definition at line 37 of file lidar_file_source_impl.h.
Public Types | |
using | OnGuardDataCBImpl = std::function< void(ErrCode, GuardDataMap)> |
using | OnGuardBridgeDataCBImpl = std::function< void(ErrCode, const struct VideoBridge2dInput *)> |
using | ImplMutex = std::recursive_mutex |
Public Member Functions | |
LidarFileSourceImpl ()=default | |
~LidarFileSourceImpl () override=default | |
ErrCode | readData_i (abiRefDataMap *&datamap) final |
ErrCode | readDataAsync_i (const abiOnDataCB *dataReadyCb) final |
void | setUserData_i (const abiRefAny *userdata) final |
const abiRefAny * | getUserData_i () const final |
virtual const abiRefAny * | getUserData_i () const =0 |
void | setErrorCallback_i (const abiErrorCB &cb) final |
ErrCode | start_i (const char *configStr, uint32_t strLen, const char *path) override |
const char * | getCaps_i (CapsPort p) const final |
ErrCode | flush_i () override |
ErrCode | stop_i () override |
State | state_i () const final |
virtual State | state_i () const =0 |
Protected Member Functions | |
ErrCode | startImpl (const std::string &content, const std::string &path) override |
Parse yaml config content and prepare all of the resource ready to fill into each frame datamap. More... | |
ErrCode | readDataImpl (GuardDataMap &datamap) override |
Read a frame, create new output datamap and fill the frame into it. More... | |
ErrCode | flushImpl () final |
flush all frames, Implementation of this function could be skipped. More... | |
ErrCode | stopImpl () override |
Stop and close all resources. More... | |
ErrCode | readDataAsyncImpl (OnGuardDataCBImpl dataReadCB) final |
void | setOutputCaps (const std::string &caps) |
void | setInputCaps (const std::string &caps) |
void | emitError (ErrCode code, const std::string &msg) |
State | getStateSafe () const |
void | setStateSafe (State flag) |
ImplMutex & | mutex () const |
|
inherited |
Definition at line 31 of file impl_dataprocess.h.
|
inherited |
Definition at line 30 of file impl_dataprocess.h.
|
inherited |
Definition at line 29 of file impl_dataprocess.h.
|
default |
|
overridedefault |
|
inlineprotectedinherited |
Definition at line 105 of file impl_dataprocess.h.
|
inlineoverridevirtualinherited |
Implements ds3d::abiProcess.
Definition at line 72 of file impl_dataprocess.h.
|
inlinefinalprotectedvirtual |
flush all frames, Implementation of this function could be skipped.
Reimplemented from ds3d::impl::SyncImplDataLoader.
Definition at line 64 of file lidar_file_source_impl.h.
References ds3d::kGood.
|
inlinefinalvirtualinherited |
Implements ds3d::abiProcess.
Definition at line 62 of file impl_dataprocess.h.
|
inlineprotectedinherited |
Definition at line 112 of file impl_dataprocess.h.
|
pure virtualinherited |
|
inlinefinalinherited |
Definition at line 48 of file impl_dataprocess.h.
|
inlineprotectedinherited |
Definition at line 125 of file impl_dataprocess.h.
|
inlinefinalvirtualinherited |
Implements ds3d::abiDataLoader.
Definition at line 41 of file impl_dataloader.h.
References DS3D_FAILED_RETURN, DS_ASSERT, ds3d::impl::BaseImplDataProcessor< abiDataLoader >::getStateSafe(), ds3d::kRunning, ds3d::kState, ds3d::impl::BaseImplDataLoader::readDataImpl(), and ds3d::GuardRef< ref, >::release().
|
inlinefinalvirtualinherited |
Implements ds3d::abiDataLoader.
Definition at line 51 of file impl_dataloader.h.
References DS3D_FAILED_RETURN, ds3d::impl::BaseImplDataProcessor< abiDataLoader >::getStateSafe(), ds3d::kRunning, ds3d::kState, and ds3d::impl::BaseImplDataLoader::readDataAsyncImpl().
|
inlinefinalprotectedvirtualinherited |
Implements ds3d::impl::BaseImplDataLoader.
Definition at line 73 of file impl_dataloader.h.
References ds3d::kUnsupported.
|
overrideprotectedvirtual |
Read a frame, create new output datamap and fill the frame into it.
[out] | datamap | New allocated datamap with parsed frame buffer. |
Implements ds3d::impl::BaseImplDataLoader.
|
inlinefinalvirtualinherited |
Implements ds3d::abiProcess.
Definition at line 49 of file impl_dataprocess.h.
|
inlineprotectedinherited |
Definition at line 103 of file impl_dataprocess.h.
|
inlineprotectedinherited |
Definition at line 101 of file impl_dataprocess.h.
|
inlineprotectedinherited |
Definition at line 118 of file impl_dataprocess.h.
|
inlinefinalvirtualinherited |
Implements ds3d::abiProcess.
Definition at line 40 of file impl_dataprocess.h.
|
inlineoverridevirtualinherited |
Implements ds3d::abiProcess.
Definition at line 50 of file impl_dataprocess.h.
|
overrideprotectedvirtual |
Parse yaml config content and prepare all of the resource ready to fill into each frame datamap.
[in] | content | yaml config content. |
[in] | path | the file location where the content is from. |
Implements ds3d::impl::BaseImplDataProcessor< abiDataLoader >.
|
pure virtualinherited |
|
inlinefinalinherited |
Definition at line 92 of file impl_dataprocess.h.
|
inlineoverridevirtualinherited |
Implements ds3d::abiProcess.
Definition at line 80 of file impl_dataprocess.h.
|
overrideprotectedvirtual |
Stop and close all resources.
Note: if there is some custom-lib handles still in use, close them in destructor
Implements ds3d::impl::BaseImplDataProcessor< abiDataLoader >.