Estimating 6D pose of an object using RGB data