flightgoggles_ros_bridge/src/GeneralClient/GeneralClient.cpp
/**
 * imageConsumer thread to consume images from FG
 * @param self General client object
 */
imageConsumer thread to consume images from FG
@param self General client object
imageConsumer thread to consume images from FG @param self General client object
void imageConsumer(GeneralClient *self){
    while (true){
      unity_incoming::RenderOutput_t renderOutput = self->flightGoggles.handleImageResponse();
      if (SHOW_DEBUG_IMAGE_FEED){
        cv::imshow("Debug RGB", renderOutput.images[0]);
        cv::imshow("Debug D", renderOutput.images[1]);
        cv::waitKey(1);
      }
    }
}
void imageConsumer ( GeneralClient * self ) { while ( true ) { unity_incoming :: RenderOutput_t renderOutput = self -> flightGoggles . handleImageResponse ( ) ; if ( SHOW_DEBUG_IMAGE_FEED ) { cv :: imshow ( " " , renderOutput . images [ 0 ] ) ; cv :: imshow ( " " , renderOutput . images [ 1 ] ) ; cv :: waitKey ( 1 ) ; } } }
imageConsumer thread to consume images from FG
 @param self General client object
imageConsumer thread to consume images from FG @param self General client object
// Wait for render result (blocking). // Display result