4#include "DvsenseBase/EventBase/EventTypes.hpp"
5#include "DvsenseHal/camera/DvsCameraUtils.hpp"
6#include "DvsenseHal/EventStream/RawEventStreamFormat.hpp"
7#include "DvsenseHal/camera/tools/CameraTool.h"
11 #define DVSENSE_API __declspec(dllexport)
13 #define DVSENSE_API __declspec(dllimport)
22 class DvsCameraManager;
239 const std::shared_ptr<CameraTool>
getTool(ToolType type);
259 std::map<ToolType, std::shared_ptr<CameraTool>>
tools_;
Interface class for DVS cameras.
Definition DvsCamera.hpp:44
virtual void setStatisticInfoCallback(DsStatisticInfoCallback cb)=0
set the callback function to get the statistic information
virtual void setBatchEventsTime(TimeStamp n)=0
Set the time interval at which events are fetched.
virtual int startRecording(std::string file_path)=0
Start recording events.
std::map< ToolType, std::shared_ptr< CameraTool > > tools_
Definition DvsCamera.hpp:259
virtual int start()=0
Start the camera.
DvsCamera(CameraDescription cameraDesc)
Constructor.
const ToolInfo getToolInfo(ToolType type)
Get the tool information.
virtual bool removeTriggerInCallback(uint32_t callback_id)=0
Remove a callback function by id.
const CameraDescription getDvsDesc()
Get camera description.
Definition DvsCamera.hpp:71
CameraDescription cameraDesc_
Get the camera description.
Definition DvsCamera.hpp:248
virtual int init()=0
When a camera is opened, it should be initialized.
const std::shared_ptr< CameraTool > getTool(ToolType type)
Get the tool.
virtual bool removeEventsStreamHandleCallback(uint32_t callback_id)=0
Remove a callback function by id.
virtual int stopRecording()=0
Stop recording events.
virtual uint32_t addTriggerInCallback(DvsTriggerInCallback cb)=0
Add a callback function to handle events.
virtual int stop()=0
Stop the camera.
virtual uint16_t getWidth()=0
Get the Width of the camera sensor.
virtual const bool isConnected()=0
Check if the camera is connected.
virtual void setBatchEventsNum(uint64_t n)=0
Set the number of events to be fetched.
virtual void setFileCacheTime(uint16_t sec)
Definition DvsCamera.hpp:179
virtual uint16_t getHeight()=0
Get the Height of the camera sensor.
const std::vector< ToolInfo > getAllToolsInfo()
Get all the tools information.
virtual bool getNextBatch(Event2DVector &event_batch)=0
Get the next batch of events Before using the getNextBatch function, you need to use setBatchEventNum...
virtual uint32_t addEventsStreamHandleCallback(EventsStreamHandleCallback cb)=0
Add a callback function to handle events.
Camera Manager class.
Definition DvsCameraManager.hpp:35
Definition TypeUtils.hpp:7
CameraStatus
Camera status, STOPPED or STARTED.
Definition DvsCamera.hpp:33
@ STOPPED
Definition DvsCamera.hpp:34
@ STARTED
Definition DvsCamera.hpp:35
uint64_t TimeStamp
Definition TypeUtils.hpp:8