flightgoggles_ros_bridge/src/GeneralClient/GeneralClient.cpp
/**
 * addCameras function to add camera objects to the client
 */
addCameras function to add camera objects to the client
addCameras function to add camera objects to the client
void GeneralClient::addCameras(){
  unity_outgoing::Camera_t cam_Left;
  cam_Left.ID = "Camera_Left";
  cam_Left.channels = 3;
  cam_Left.isDepth = false;
  cam_Left.outputIndex = 0;
  unity_outgoing::Camera_t cam_Right;
  cam_Right.ID = "Camera_Right";
  cam_Right.channels = 3;
  cam_Right.isDepth = false;
  cam_Right.outputIndex = 0;
  flightGoggles.state.cameras.push_back(cam_Left);
  flightGoggles.state.cameras.push_back(cam_Right);
}
void GeneralClient :: addCameras ( ) { unity_outgoing :: Camera_t cam_Left ; cam_Left . ID = " " ; cam_Left . channels = 3 ; cam_Left . isDepth = false ; cam_Left . outputIndex = 0 ; unity_outgoing :: Camera_t cam_Right ; cam_Right . ID = " " ; cam_Right . channels = 3 ; cam_Right . isDepth = false ; cam_Right . outputIndex = 0 ; flightGoggles . state . cameras . push_back ( cam_Left ) ; flightGoggles . state . cameras . push_back ( cam_Right ) ; }
addCameras function to add camera objects to the client
addCameras function to add camera objects to the client
// Prepopulate metadata of cameras (RGBD) //  unity_outgoing::Camera_t cam_D; //  cam_D.ID = "Camera_D"; //  cam_D.channels = 1; //  cam_D.isDepth = true; //  cam_D.outputIndex = 1; // Add cameras to persistent state