If RoboRealm is sending values to the Network Tables, and if those values are already displaying on the SmartDashboard, then the only code you need is:
Code:
double distance = SmartDashboard::GetNumber("Distance");
This is assuming RoboRealm's variable is named "Distance".