The invention provides a method for the instant positioning and the map building based on the fusion of a
laser and a two-dimensional code. The driving distance and the speed information of an
odometer, a two-dimensional code acquired by a
monocular camera, and the information of an
inertial measurement unit are integrated into a
state vector. An observation equation of the federated Kalman filteris constructed according to an observation model of the
odometer, an observation model of the
inertial measurement unit, and an observation model of the
monocular camera. The two-dimensional code positioning information is added on the basis of a traditional
odometer and the
inertial measurement unit, thereby obtaining the optimal solution of the
state vector of an unmanned mobile platform; the
pose prediction information with higher accuracy is formed by using the characteristics of the fastness and the accuracy of the two-dimensional code
information processing, thereby reducing the numberof particles in the method for
particle filter instant positioning and map building, and improving the low-power processor, such as the positioning accuracy of the unmanned mobile platform. The positioning effect of the unmanned mobile platform in the complex environment is ensured, map building is completed, and the application need in the complex environment is met.