How to get current robot pose?

The Position class is for manging generic Pose variables, the getX() function and similar is for extracting the respective parameters from a pose variable, e.g. read from a Feature.

Check out this post on how to read actual position.