centroid based pose estimation