Skip to content

example of Metavision::Histo3dDecoder use? #145

@skal-hs

Description

@skal-hs

Hi,

i'm trying to use the Histo3dDecoder with:

 std::unique_ptr<Metavision::Device> device = Metavision::DeviceDiscovery::open("");
 auto* decoder = device->get_facility<Metavision::Histo3dDecoder>();

but i get this compile error:

/usr/local/include/metavision/hal/device/device.h:32:23: error: static assertion failed due to requirement 'std::is_base_of<Metavision::I_RegistrableFacility<Metavision::Histo3dDecoder, void>, Metavision::Histo3dDecoder>::value': Unable to get facility of unregistrable facility type.
   32 |         static_assert(std::is_base_of<I_RegistrableFacility<FacilityType>, FacilityType>::value,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
camera_tuner.cpp:191:41: note: in instantiation of function template specialization 'Metavision::Device::get_facility<Metavision::Histo3dDecoder>' requested here
  191 |     auto* i_histogram_decoder = device->get_facility<Metavision::Histo3dDecoder>();

Is it expected? What code am i missing here?
Is there any example of EHCDecoder usage somewhere?

Thanks a lot!
skal/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions