NVIDIA DeepStream SDK API Reference

8.0 Release
ds3d::impl::lidarsource::LidarFileSourceImpl Class Referenceabstract

Detailed Description

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 sources/libs/ds3d/dataloader/lidarsource/lidar_file_source_impl.h.

Inheritance diagram for ds3d::impl::lidarsource::LidarFileSourceImpl:
Collaboration diagram for ds3d::impl::lidarsource::LidarFileSourceImpl:

Public Types

using OnGuardDataCBImpl = std::function< void(ErrCode, GuardDataMap)>
 
using OnGuardDataCBImpl = std::function< void(ErrCode, GuardDataMap)>
 
using OnGuardBridgeDataCBImpl = std::function< void(ErrCode, const struct VideoBridge2dInput *)>
 
using OnGuardBridgeDataCBImpl = std::function< void(ErrCode, const struct VideoBridge2dInput *)>
 
using ImplMutex = std::recursive_mutex
 
using ImplMutex = std::recursive_mutex
 

Public Member Functions

 LidarFileSourceImpl ()=default
 
 ~LidarFileSourceImpl () override=default
 
 LidarFileSourceImpl ()=default
 
 ~LidarFileSourceImpl () override=default
 
ErrCode readData_i (abiRefDataMap *&datamap) final
 
ErrCode readData_i (abiRefDataMap *&datamap) final
 
ErrCode readDataAsync_i (const abiOnDataCB *dataReadyCb) final
 
ErrCode readDataAsync_i (const abiOnDataCB *dataReadyCb) final
 
void setUserData_i (const abiRefAny *userdata) final
 
void setUserData_i (const abiRefAny *userdata) final
 
const abiRefAnygetUserData_i () const final
 
const abiRefAnygetUserData_i () const final
 
virtual const abiRefAnygetUserData_i () const =0
 
void setErrorCallback_i (const abiErrorCB &cb) final
 
void setErrorCallback_i (const abiErrorCB &cb) final
 
ErrCode start_i (const char *configStr, uint32_t strLen, const char *path) override
 
ErrCode start_i (const char *configStr, uint32_t strLen, const char *path) override
 
const char * getCaps_i (CapsPort p) const final
 
const char * getCaps_i (CapsPort p) const final
 
ErrCode flush_i () override
 
ErrCode flush_i () override
 
ErrCode stop_i () override
 
ErrCode stop_i () override
 
State state_i () const final
 
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 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
 
ErrCode readDataAsyncImpl (OnGuardDataCBImpl dataReadCB) final
 
void setOutputCaps (const std::string &caps)
 
void setOutputCaps (const std::string &caps)
 
void setInputCaps (const std::string &caps)
 
void setInputCaps (const std::string &caps)
 
void emitError (ErrCode code, const std::string &msg)
 
void emitError (ErrCode code, const std::string &msg)
 
State getStateSafe () const
 
State getStateSafe () const
 
void setStateSafe (State flag)
 
void setStateSafe (State flag)
 
ImplMutexmutex () const
 
ImplMutexmutex () const
 

Member Typedef Documentation

◆ ImplMutex [1/2]

using ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::ImplMutex = std::recursive_mutex
inherited

◆ ImplMutex [2/2]

using ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::ImplMutex = std::recursive_mutex
inherited

◆ OnGuardBridgeDataCBImpl [1/2]

◆ OnGuardBridgeDataCBImpl [2/2]

◆ OnGuardDataCBImpl [1/2]

◆ OnGuardDataCBImpl [2/2]

Constructor & Destructor Documentation

◆ LidarFileSourceImpl() [1/2]

ds3d::impl::lidarsource::LidarFileSourceImpl::LidarFileSourceImpl ( )
default

◆ ~LidarFileSourceImpl() [1/2]

ds3d::impl::lidarsource::LidarFileSourceImpl::~LidarFileSourceImpl ( )
overridedefault

◆ LidarFileSourceImpl() [2/2]

ds3d::impl::lidarsource::LidarFileSourceImpl::LidarFileSourceImpl ( )
default

◆ ~LidarFileSourceImpl() [2/2]

ds3d::impl::lidarsource::LidarFileSourceImpl::~LidarFileSourceImpl ( )
overridedefault

Member Function Documentation

◆ emitError() [1/2]

void ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::emitError ( ErrCode  code,
const std::string &  msg 
)
inlineprotectedinherited

◆ emitError() [2/2]

void ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::emitError ( ErrCode  code,
const std::string &  msg 
)
inlineprotectedinherited

◆ flush_i() [1/2]

ErrCode ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::flush_i ( )
inlineoverridevirtualinherited

◆ flush_i() [2/2]

ErrCode ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::flush_i ( )
inlineoverridevirtualinherited

◆ flushImpl() [1/2]

ErrCode ds3d::impl::lidarsource::LidarFileSourceImpl::flushImpl ( )
inlinefinalprotectedvirtual

flush all frames, Implementation of this function could be skipped.

Returns
, return ErrCode::kGood if successed,

Reimplemented from ds3d::impl::SyncImplDataLoader.

Definition at line 64 of file sources/libs/ds3d/dataloader/lidarsource/lidar_file_source_impl.h.

References ds3d::kGood.

◆ flushImpl() [2/2]

ErrCode ds3d::impl::lidarsource::LidarFileSourceImpl::flushImpl ( )
inlinefinalprotectedvirtual

flush all frames, Implementation of this function could be skipped.

Returns
, return ErrCode::kGood if successed,

Reimplemented from ds3d::impl::SyncImplDataLoader.

Definition at line 64 of file 9.0/sources/libs/ds3d/dataloader/lidarsource/lidar_file_source_impl.h.

References ds3d::kGood.

◆ getCaps_i() [1/2]

const char* ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::getCaps_i ( CapsPort  p) const
inlinefinalvirtualinherited

◆ getCaps_i() [2/2]

const char* ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::getCaps_i ( CapsPort  p) const
inlinefinalvirtualinherited

◆ getStateSafe() [1/2]

State ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::getStateSafe ( ) const
inlineprotectedinherited

◆ getStateSafe() [2/2]

State ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::getStateSafe ( ) const
inlineprotectedinherited

◆ getUserData_i() [1/3]

virtual const abiRefAny* ds3d::abiProcess::getUserData_i ( ) const
pure virtualinherited

◆ getUserData_i() [2/3]

const abiRefAny* ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::getUserData_i ( ) const
inlinefinalinherited

◆ getUserData_i() [3/3]

const abiRefAny* ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::getUserData_i ( ) const
inlinefinalinherited

◆ mutex() [1/2]

ImplMutex& ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::mutex ( ) const
inlineprotectedinherited

◆ mutex() [2/2]

ImplMutex& ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::mutex ( ) const
inlineprotectedinherited

◆ readData_i() [1/2]

◆ readData_i() [2/2]

◆ readDataAsync_i() [1/2]

ErrCode ds3d::impl::BaseImplDataLoader::readDataAsync_i ( const abiOnDataCB dataReadyCb)
inlinefinalvirtualinherited

◆ readDataAsync_i() [2/2]

ErrCode ds3d::impl::BaseImplDataLoader::readDataAsync_i ( const abiOnDataCB dataReadyCb)
inlinefinalvirtualinherited

◆ readDataAsyncImpl() [1/2]

ErrCode ds3d::impl::SyncImplDataLoader::readDataAsyncImpl ( OnGuardDataCBImpl  dataReadCB)
inlinefinalprotectedvirtualinherited

◆ readDataAsyncImpl() [2/2]

ErrCode ds3d::impl::SyncImplDataLoader::readDataAsyncImpl ( OnGuardDataCBImpl  dataReadCB)
inlinefinalprotectedvirtualinherited

◆ readDataImpl() [1/2]

ErrCode ds3d::impl::lidarsource::LidarFileSourceImpl::readDataImpl ( GuardDataMap datamap)
overrideprotectedvirtual

Read a frame, create new output datamap and fill the frame into it.

Parameters
[out]datamapNew allocated datamap with parsed frame buffer.
Returns
, return ErrCode::kGood if successed, return ErrCode::KEndOfStream if reach to end of file list return ErrCode::kByPass if some frame need to skip otherwise, return error.

Implements ds3d::impl::BaseImplDataLoader.

◆ readDataImpl() [2/2]

ErrCode ds3d::impl::lidarsource::LidarFileSourceImpl::readDataImpl ( GuardDataMap datamap)
overrideprotectedvirtual

Read a frame, create new output datamap and fill the frame into it.

Parameters
[out]datamapNew allocated datamap with parsed frame buffer.
Returns
, return ErrCode::kGood if successed, return ErrCode::KEndOfStream if reach to end of file list return ErrCode::kByPass if some frame need to skip otherwise, return error.

Implements ds3d::impl::BaseImplDataLoader.

◆ setErrorCallback_i() [1/2]

void ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::setErrorCallback_i ( const abiErrorCB cb)
inlinefinalvirtualinherited

◆ setErrorCallback_i() [2/2]

void ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::setErrorCallback_i ( const abiErrorCB cb)
inlinefinalvirtualinherited

◆ setInputCaps() [1/2]

void ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::setInputCaps ( const std::string &  caps)
inlineprotectedinherited

◆ setInputCaps() [2/2]

void ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::setInputCaps ( const std::string &  caps)
inlineprotectedinherited

◆ setOutputCaps() [1/2]

void ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::setOutputCaps ( const std::string &  caps)
inlineprotectedinherited

◆ setOutputCaps() [2/2]

void ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::setOutputCaps ( const std::string &  caps)
inlineprotectedinherited

◆ setStateSafe() [1/2]

void ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::setStateSafe ( State  flag)
inlineprotectedinherited

◆ setStateSafe() [2/2]

void ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::setStateSafe ( State  flag)
inlineprotectedinherited

◆ setUserData_i() [1/2]

void ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::setUserData_i ( const abiRefAny userdata)
inlinefinalvirtualinherited

◆ setUserData_i() [2/2]

void ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::setUserData_i ( const abiRefAny userdata)
inlinefinalvirtualinherited

◆ start_i() [1/2]

ErrCode ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::start_i ( const char *  configStr,
uint32_t  strLen,
const char *  path 
)
inlineoverridevirtualinherited

◆ start_i() [2/2]

ErrCode ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::start_i ( const char *  configStr,
uint32_t  strLen,
const char *  path 
)
inlineoverridevirtualinherited

◆ startImpl() [1/2]

ErrCode ds3d::impl::lidarsource::LidarFileSourceImpl::startImpl ( const std::string &  content,
const std::string &  path 
)
overrideprotectedvirtual

Parse yaml config content and prepare all of the resource ready to fill into each frame datamap.

Parameters
[in]contentyaml config content.
[in]paththe file location where the content is from.
Returns
, return ErrCode::kGood if successed.

Implements ds3d::impl::BaseImplDataProcessor< abiDataLoader >.

◆ startImpl() [2/2]

ErrCode ds3d::impl::lidarsource::LidarFileSourceImpl::startImpl ( const std::string &  content,
const std::string &  path 
)
overrideprotectedvirtual

Parse yaml config content and prepare all of the resource ready to fill into each frame datamap.

Parameters
[in]contentyaml config content.
[in]paththe file location where the content is from.
Returns
, return ErrCode::kGood if successed.

Implements ds3d::impl::BaseImplDataProcessor< abiDataLoader >.

◆ state_i() [1/3]

virtual State ds3d::abiProcess::state_i ( ) const
pure virtualinherited

◆ state_i() [2/3]

State ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::state_i ( ) const
inlinefinalinherited

◆ state_i() [3/3]

State ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::state_i ( ) const
inlinefinalinherited

◆ stop_i() [1/2]

ErrCode ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::stop_i ( )
inlineoverridevirtualinherited

◆ stop_i() [2/2]

ErrCode ds3d::impl::BaseImplDataProcessor< abiDataLoader , >::stop_i ( )
inlineoverridevirtualinherited

◆ stopImpl() [1/2]

ErrCode ds3d::impl::lidarsource::LidarFileSourceImpl::stopImpl ( )
overrideprotectedvirtual

Stop and close all resources.

Note: if there is some custom-lib handles still in use, close them in destructor

Returns
, return ErrCode::kGood if successed,

Implements ds3d::impl::BaseImplDataProcessor< abiDataLoader >.

◆ stopImpl() [2/2]

ErrCode ds3d::impl::lidarsource::LidarFileSourceImpl::stopImpl ( )
overrideprotectedvirtual

Stop and close all resources.

Note: if there is some custom-lib handles still in use, close them in destructor

Returns
, return ErrCode::kGood if successed,

Implements ds3d::impl::BaseImplDataProcessor< abiDataLoader >.


The documentation for this class was generated from the following file: