![]() |
DvsenseDriver
1.0.3
The SDK for dvsense products.
|
Interface class for DVS cameras. More...
#include <DvsCamera.hpp>
Public Member Functions | |
DvsCamera (CameraDescription cameraDesc) | |
Constructor. | |
virtual const bool | isConnected ()=0 |
Check if the camera is connected. | |
const CameraDescription | getDvsDesc () |
Get camera description. | |
virtual uint32_t | addEventsStreamHandleCallback (EventsStreamHandleCallback cb)=0 |
Add a callback function to handle events. | |
virtual bool | removeEventsStreamHandleCallback (uint32_t callback_id)=0 |
Remove a callback function by id. | |
virtual uint32_t | addTriggerInCallback (DvsTriggerInCallback cb)=0 |
Add a callback function to handle events. | |
virtual bool | removeTriggerInCallback (uint32_t callback_id)=0 |
Remove a callback function by id. | |
virtual bool | getNextBatch (Event2DVector &event_batch)=0 |
Get the next batch of events Before using the getNextBatch function, you need to use setBatchEventNum to set the number of events you need to fetch, or setAccumulateEventsTime to set the interval at which you need to fetch the events. | |
virtual void | setBatchEventsNum (uint64_t n)=0 |
Set the number of events to be fetched. | |
virtual void | setBatchEventsTime (TimeStamp n)=0 |
Set the time interval at which events are fetched. | |
virtual int | start ()=0 |
Start the camera. | |
virtual int | stop ()=0 |
Stop the camera. | |
virtual int | startRecording (std::string file_path)=0 |
Start recording events. | |
virtual void | setFileCacheTime (uint16_t sec) |
virtual int | stopRecording ()=0 |
Stop recording events. | |
virtual uint16_t | getWidth ()=0 |
Get the Width of the camera sensor. | |
virtual uint16_t | getHeight ()=0 |
Get the Height of the camera sensor. | |
virtual void | setStatisticInfoCallback (DsStatisticInfoCallback cb)=0 |
set the callback function to get the statistic information | |
const std::vector< ToolInfo > | getAllToolsInfo () |
Get all the tools information. | |
const ToolInfo | getToolInfo (ToolType type) |
Get the tool information. | |
const std::shared_ptr< CameraTool > | getTool (ToolType type) |
Get the tool. | |
Protected Member Functions | |
virtual int | init ()=0 |
When a camera is opened, it should be initialized. | |
Protected Attributes | |
CameraDescription | cameraDesc_ |
Get the camera description. | |
std::map< ToolType, std::shared_ptr< CameraTool > > | tools_ |
Interface class for DVS cameras.
dvsense::DvsCamera::DvsCamera | ( | CameraDescription | cameraDesc | ) |
Constructor.
cameraDesc | camera description |
|
pure virtual |
Check if the camera is connected.
|
inline |
Get camera description.
|
pure virtual |
Add a callback function to handle events.
cb | callback function |
|
pure virtual |
Remove a callback function by id.
callback_id |
|
pure virtual |
Add a callback function to handle events.
cb | callback function |
|
pure virtual |
Remove a callback function by id.
callback_id |
|
pure virtual |
Get the next batch of events Before using the getNextBatch function, you need to use setBatchEventNum to set the number of events you need to fetch, or setAccumulateEventsTime to set the interval at which you need to fetch the events.
event_batch |
|
pure virtual |
Set the number of events to be fetched.
n | number of events |
|
pure virtual |
Set the time interval at which events are fetched.
n | interval in microseconds |
|
pure virtual |
Start the camera.
|
pure virtual |
Stop the camera.
|
pure virtual |
Start recording events.
file_path |
|
inlinevirtual |
|
pure virtual |
Stop recording events.
|
pure virtual |
Get the Width of the camera sensor.
|
pure virtual |
Get the Height of the camera sensor.
|
pure virtual |
set the callback function to get the statistic information
cb | callback function |
const std::vector< ToolInfo > dvsense::DvsCamera::getAllToolsInfo | ( | ) |
Get all the tools information.
const ToolInfo dvsense::DvsCamera::getToolInfo | ( | ToolType | type | ) |
const std::shared_ptr< CameraTool > dvsense::DvsCamera::getTool | ( | ToolType | type | ) |
Get the tool.
type | tool type |
|
protectedpure virtual |
When a camera is opened, it should be initialized.
|
protected |
Get the camera description.
|
protected |