InputType Class Reference

Defines the input type used in the ZED SDK. Can be used to select a specific camera with ID or serial number, or a svo file. More...

Types

enum class  INPUT_TYPE
 

Functions

 InputType ()
 
 InputType (const InputType &type)
 
void setFromCameraID (int id=-1, sl::BUS_TYPE bus_type=sl::BUS_TYPE::AUTO)
 
void setFromSerialNumber (unsigned int camera_serial_number, sl::BUS_TYPE bus_type=sl::BUS_TYPE::AUTO)
 
void setFromSVOFile (sl::String svo_input_filename)
 
void setFromStream (sl::String senderIP, unsigned short port=30000)
 
INPUT_TYPE getType ()
 
sl::String getConfiguration ()
 
bool isInit ()
 

Detailed Description

Defines the input type used in the ZED SDK. Can be used to select a specific camera with ID or serial number, or a svo file.

Enumeration

◆ INPUT_TYPE

enum INPUT_TYPE
strong
Enumerator
USB_ID 
USB_SERIAL 
SVO_FILE 
STREAM 
GMSL_ID 
GMSL_SERIAL 

Constructor and Destructor

◆ InputType() [1/2]

InputType ( )

Default constructor

◆ InputType() [2/2]

InputType ( const InputType type)

Copy constructor

Functions

◆ setFromCameraID()

void setFromCameraID ( int  id = -1,
sl::BUS_TYPE  bus_type = sl::BUS_TYPE::AUTO 
)

Set the input as the camera with specified id (for USB or GMSL Cameras only)

◆ setFromSerialNumber()

void setFromSerialNumber ( unsigned int  camera_serial_number,
sl::BUS_TYPE  bus_type = sl::BUS_TYPE::AUTO 
)

Set the input as the camera with specified serial number (for USB or GMSL Cameras)

◆ setFromSVOFile()

void setFromSVOFile ( sl::String  svo_input_filename)

Set the input as the svo specified with the filename

◆ setFromStream()

void setFromStream ( sl::String  senderIP,
unsigned short  port = 30000 
)

Set the input as the stream defined by the IP and the port of the sending device

Note
the following notes are only available for v2.8.5 and up. Previously, the internal port used to receive stream was randomly chosen between a list of available ports.
Since 2.8.5: Internally, the receiving part will try to use the same port number. If the port number is already taken by a process, the session will retry on port + 2, +4, +6, ..... Therefore the internal port used to receive the stream will be the closest upper port available.
the protocol used for the streaming module is based on RTP/RTCP. Port must be even number, since the port+1 is used for control data.

◆ getType()

INPUT_TYPE getType ( )
inline

Returns the current input type

◆ getConfiguration()

sl::String getConfiguration ( )
inline

Returns the current input configuration as a string e.g: the SVO name, the serial number, the streaming ip...

◆ isInit()

bool isInit ( )
inline

Check whether the input is set