This application provides a method, apparatus, electronic device, storage medium, and program product for
robot map building. The method includes: constructing a map set based on
environmental data collected during
robot movement; constructing registration constraints for each sub-map based on the Euclidean symbolic distance field and surface
voxel set of each sub-map; constructing
odometry constraints for each sub-map based on the relative
pose between any two adjacent sub-maps in the map set; performing
loop closure detection on each sub-map based on
loop closure information collected during
robot movement, and constructing
loop closure constraints for each sub-map; determining a reference
pose map based on the loop closure information, and constructing global constraints for each sub-map based on the reference
pose map; adjusting each sub-map based on the registration constraints,
odometry constraints, loop closure constraints, and global constraints, and fusing the adjusted sub-maps to obtain a
global map. This application improves the accuracy and consistency of map building with the environment.