src/CameraConnector.cpp
void CameraConnector::connectCameras(int number, int type)
{
    switch (type)
    {
    case 1:
    {
        RSCameraHandler* newCamera = new RSCameraHandler();
        if (newCamera->getPipeRunning()) {
            std::thread camThread(threadFunc, newCamera);
            camThread.detach();
            connectedCams.insert(connectedCams.begin() + number, newCamera);
        } else {
            std::cout << "RS camera handler failed to initialize!" << std::endl;
        }
        break;
    }
    case 2:
        //zed
        break;

    case 3:
        //other
        break;

    default:
        break;
    }
}
/**
 * Method connects the camera's to the application.
 * @param number The camera in the array
 * @param type Type of camera that gets connected: 1 for realsense, 2 for zed(//TODO)
 * @return void
 */
Method connects the camera's to the application.
@param number The camera in the array
@param type Type of camera that gets connected: 1 for realsense, 2 for zed(//TODO)
@return void
Method connects the camera ' s to the application . @param number The camera in the array @param type Type of camera that gets connected : 1 for realsense 2 for zed ( // TODO ) @return void
void CameraConnector::connectCameras(int number, int type)
{
    switch (type)
    {
    case 1:
    {
        RSCameraHandler* newCamera = new RSCameraHandler();
        if (newCamera->getPipeRunning()) {
            std::thread camThread(threadFunc, newCamera);
            camThread.detach();
            connectedCams.insert(connectedCams.begin() + number, newCamera);
        } else {
            std::cout << "RS camera handler failed to initialize!" << std::endl;
        }
        break;
    }
    case 2:
        break;
    case 3:
        break;
    default:
        break;
    }
}
void CameraConnector :: connectCameras ( int number , int type ) { switch ( type ) { case 1 : { RSCameraHandler * newCamera = new RSCameraHandler ( ) ; if ( newCamera -> getPipeRunning ( ) ) { std :: thread camThread ( threadFunc , newCamera ) ; camThread . detach ( ) ; connectedCams . insert ( connectedCams . begin ( ) + number , newCamera ) ; } else { std :: cout << " " << std :: endl ; } break ; } case 2 : break ; case 3 : break ; default : break ; } }
Method connects the camera's to the application.
Method connects the camera ' s to the application .
//zed //other