SDK Base Deprecated Events

Warning

All the data structures in this page are deprecated since version 2.1.0 and will be removed in next releases

class Metavision::EventEM : public Metavision::Event2d

Class representing basic 2D EM (Exposure Measurement) events.

Note

This class is deprecated since version 2.1.0 and will be removed in next releases

Public Functions

EventEM() = default

Default constructor.

EventEM(const Event2d &ev)

Constructor from Event2d.

Event2d() = default

Default constructor.

Event2d(unsigned short x, unsigned short y, short p, timestamp t)

Constructor.

Parameters
  • x: Column position of the event in the sensor

  • y: Row position of the event in the sensor

  • p: Polarity specialising the event

  • t: Timestamp of the event (in us)

class Metavision::Event2dGray : public Metavision::Event2d

Class representing a gray event.

Note

This class is deprecated since version 2.1.0 and will be removed in next releases

Public Functions

~Event2dGray() = default

Destructor.

void write_event(void *buf, timestamp origin) const

Writes Metavision::Event2dGray in buffer.

struct Event2dGraySimple

Simpler version of the event 2d gray.

Note

This class is deprecated since version 2.1.0 and will be removed in next releases

class Metavision::EventIMU

Class representing an IMU event.

Note

This class is deprecated since version 2.1.0 and will be removed in next releases

Public Functions

EventIMU() = default

Default constructor.

EventIMU(float ax, float ay, float az, float gx, float gy, float gz, timestamp ts)

Constructor.

Parameters
  • ax: Accelerometer x value (in g)

  • ay: Accelerometer y value (in g)

  • az: Accelerometer z value (in g)

  • gx: Gyroscope x value (in rad/s)

  • gy: Gyroscope y value (in rad/s)

  • gz: Gyroscope z value (in rad/s)

  • ts: Timestamp of the event (in us)

void write_event(void *buf, timestamp origin) const

Writes EventIMU in buffer.

Public Members

float ax

Accelerometer x, y, and z values [g].

float gx

Gyroscope x, y, and z values [rad/s].

timestamp t

Timestamp at which the event happened (in us)

Public Static Functions

EventIMU read_event_v1(void *buf, const timestamp &delta_ts)

Reads EventIMU (old format) from buffer.

EventIMU read_event(void *buf, const timestamp &delta_ts)

Reads event 2D from buffer.

size_t get_raw_event_size()

Gets the size of the RawEvent.

Friends

friend std::ostream &operator<<(std::ostream &output, const EventIMU &e)

operator<<

struct Metavision::EventIlluminance

Class representing an Illuminance event.

Note

This class is deprecated since version 2.1.0 and will be removed in next releases

Public Functions

EventIlluminance() = default

Default constructor.

EventIlluminance(timestamp time, float illum)

Constructor.

Parameters
  • time: Timestamp at which the event happened (in us)

  • illum: Illuminance value (in lux)

Public Members

timestamp t

Timestamp at which the event happened (in us)

float illuminance

Illuminance value (in lux)

struct Metavision::EventTemperature

Class representing a Temperature event.

Note

This class is deprecated since version 2.1.0 and will be removed in next releases

Public Functions

EventTemperature() = default

Default constructor.

EventTemperature(timestamp t, short s, float v)

Constructor.

Parameters
  • t: Timestamp of the event

  • s: Source sensor of the event, see source

  • v: Value of the temperature

Public Members

timestamp t

Timestamp of the event.

short source

Source sensor of the event. Each device can have multiple temperature sensors. The exact id corresponding to each sensor changes with differing devices.

float value

Temperature in degrees Celsius.