refactored to support two camera pose readings