Advancing 6DoF Object Pose Estimation: Keypoint Voting, Optimal Keypoint Sampling, and Bridging the Simulation-to-real Gap