30#include <rtabmap/core/SensorCaptureInfo.h>
31#include <rtabmap/utilite/UEvent.h>
32#include "rtabmap/core/SensorData.h"
88 SensorEvent(
const cv::Mat & image,
int seq=0,
double stamp = 0.0,
const std::string &
cameraName = std::string()) :
90 data_(image, seq, stamp)
149 sensorCaptureInfo_(sensorCaptureInfo)
194 virtual std::string
getClassName()
const {
return std::string(
"SensorEvent");}
Metadata structure for sensor data capture and processing.
std::string cameraName
Camera/sensor name identifier.
Container class for all sensor data captured at a specific time.
Event class for sensor data communication in RTAB-Map's event system.
const SensorData & data() const
Returns the sensor data contained in this event.
SensorEvent(const SensorData &data, const std::string &cameraName)
Constructor from SensorData with camera name.
SensorEvent(const SensorData &data, const SensorCaptureInfo &sensorCaptureInfo)
Constructor from SensorData with full capture info.
virtual ~SensorEvent()
Virtual destructor.
SensorEvent(const SensorData &data)
Constructor from SensorData.
virtual std::string getClassName() const
Returns the class name for event identification.
const SensorCaptureInfo & info() const
Returns the sensor capture information.
Code
Event codes for SensorEvent.
@ kCodeNoMoreImages
Event code indicating the sensor stream has ended.
@ kCodeData
Event code indicating new sensor data is available.
SensorEvent(const cv::Mat &image, int seq=0, double stamp=0.0, const std::string &cameraName=std::string())
Constructor from a single image.
const std::string & cameraName() const
Returns the camera name.
SensorEvent()
Constructor for end-of-stream event.
RTABMAP_DEPRECATED typedef SensorEvent CameraEvent
Backward compatibility typedef.