Hi,
These two approaches would give the same result:
Transform rtab_pose = rtabmap.getLastLocalizationPose();
Transform rtab_pose = rtabmap.getMapCorrection()*pose;
To make a comparison with ROS, "rtab_pose" will be the pose in /map frame as "pose" is the pose in /odom frame.
cheers,
Mathieu