WPILib Lidar Mapping

Hello.

I am looking for code to map from WPILib to 2d lidar sensor.
Is there a slam algorithm that can only run on wpilib?
Cartographer, gmapping or something else without ros

Thank you.