class mrpt::hwdrivers::CMyntEyeCamera

Overview

Captures stereo depth+RGB data from MYNT EYE-D cameras.

Wraps the MYNT EYE SDK to expose the sensor as a standard MRPT grabber. Produced observations are of type mrpt::obs::CObservation3DRangeScan containing the left RGB image and the corresponding depth map.

Requires the MYNT EYE SDK (libmynteye) to be installed.

See also:

mrpt::hwdrivers::CCameraSensor

#include <mrpt/hwdrivers/CMyntEyeCamera.h>

class CMyntEyeCamera
{
public:
    // structs

    struct Impl;

    // construction

    CMyntEyeCamera(const TMyntEyeCameraParameters& params);

    // methods

    bool isOpen() const;
    std::optional<mrpt::obs::CObservation3DRangeScan> grabFrame();
    bool getObservation(mrpt::obs::CObservation3DRangeScan& out);
};

Construction

CMyntEyeCamera(const TMyntEyeCameraParameters& params)

Opens the MYNT EYE camera with the given parameters.

Parameters:

params

Camera open parameters (IR intensity, etc.).

Methods

bool isOpen() const

Returns true if the camera was opened successfully.

std::optional<mrpt::obs::CObservation3DRangeScan> grabFrame()

Grabs one frame from the camera.

Deprecated Use grabFrame() instead.

Grabs one frame from the camera, returning by value.

Parameters:

out

Filled with the RGB+depth observation on success.

Returns:

false on any error, true on success.

std::nullopt if no new data is available or on error, or the observation on success.

bool getObservation(mrpt::obs::CObservation3DRangeScan& out)

Deprecated Use grabFrame() instead.