Create new Cartographer / SLAM service
Borg the following project into a service - https://github.com/googlecartographer/cartographer It's a very active and very popular SLAM service. Regrettably written in C++ but that won't stop us.
Or perhaps - https://github.com/simondlevy/BreezySLAM as it already has Java bindings
Looking at the Cartographer program from the first link shows the following system requirements: Although Cartographer may run on other systems, it is confirmed to be working on systems that meet the following requirements:
64-bit, modern CPU (e.g. 3rd generation i7) 16 GB RAM Ubuntu 18.04 (Bionic), 20.04 (Focal), 22.04 (Jammy) gcc version 7.5.0, 8.3.0, 9.3.0, 10.2.1, 11.2.0
That rules out any of the Raspi computers.