ovc5/software/camera_device_driver/src/sensor_manager.cpp
// The stereo only waits for a single interrupt from the first camera
The stereo only waits for a single interrupt from the first camera
The stereo only waits for a single interrupt from the first camera
std::map<int, unsigned char*> SensorManager::getFrames()
{
  std::map<int, unsigned char*> frame_map;
  line_counter.interruptAtLine(LINE_BUFFER_SIZE);
  line_counter.waitInterrupt();
  auto cam_it = cameras.begin();
  while (cam_it != cameras.end())
  {
    frame_map.insert({cam_it->first, cam_it->second->getFrameNoInterrupt()});
    ++cam_it;
  } 
  return frame_map;
}
std :: map < int , unsigned char * > SensorManager :: getFrames ( ) { std :: map < int , unsigned char * > frame_map ; line_counter . interruptAtLine ( LINE_BUFFER_SIZE ) ; line_counter . waitInterrupt ( ) ; auto cam_it = cameras . begin ( ) ; while ( cam_it != cameras . end ( ) ) { frame_map . insert ( { cam_it -> first , cam_it -> second -> getFrameNoInterrupt ( ) } ) ; ++ cam_it ; } return frame_map ; }
The stereo only waits for a single interrupt from the first camera
The stereo only waits for a single interrupt from the first camera
// Start timer and wait for interrupt