Hi,
This format is TORO format. How did you export these values? With the File->Export poses menu action, you can choose to export in "raw" format, which gives 3x4 transformation matrices (assuming last row of 4x4 to be 0 0 0 1).
RTAB-Map converts RPY to rotation matrix with
pcl::getTransformation().
cheers,
Mathieu