Visual Servoing Platform  version 3.6.1 under development (2024-11-15)
vpPylonFactory Class Reference

#include <visp3/sensor/vpPylonFactory.h>

Public Types

enum  DeviceClass { BASLER_GIGE , BASLER_USB }
 

Public Member Functions

vpPylonGrabbercreatePylonGrabber (DeviceClass dev_class)
 

Static Public Member Functions

static vpPylonFactoryinstance ()
 

Detailed Description

Factory singleton class to create vpPylonGrabber subclass instances.

Use vpPylonFactory::instance() to get the singleton instance. This class can also help to initialize and terminate pylon runtime system.

Example code.

Factory singleton class to create vpPylonGrabber subclass instances.
static vpPylonFactory & instance()
Get the vpPylonFactory singleton.
@ BASLER_GIGE
Basler GigE camera.
vpPylonGrabber * createPylonGrabber(DeviceClass dev_class)
Create an object of vpPylonGrabber.
Examples
testPylonGrabber.cpp, and tutorial-grabber-basler-pylon.cpp.

Definition at line 69 of file vpPylonFactory.h.

Member Enumeration Documentation

◆ DeviceClass

Device class of cameras.

Enumerator
BASLER_GIGE 

Basler GigE camera.

BASLER_USB 

Basler USB camera.

Definition at line 76 of file vpPylonFactory.h.

Member Function Documentation

◆ createPylonGrabber()

vpPylonGrabber * vpPylonFactory::createPylonGrabber ( DeviceClass  dev_class)

Create an object of vpPylonGrabber.

Parameters
dev_classThe device class. See vpPylonFactory::DeviceClass for valid values.
Returns
The pointer towards the vpPylonGrabber object. It's the caller's responsibility to destroy the object. nullptr pointer will be returned if requested object can't be properly created.
Examples
testPylonGrabber.cpp, and tutorial-grabber-basler-pylon.cpp.

Definition at line 71 of file vpPylonFactory.cpp.

References BASLER_GIGE, and BASLER_USB.

◆ instance()

BEGIN_VISP_NAMESPACE vpPylonFactory & vpPylonFactory::instance ( )
static

Get the vpPylonFactory singleton.

Examples
testPylonGrabber.cpp, and tutorial-grabber-basler-pylon.cpp.

Definition at line 55 of file vpPylonFactory.cpp.