Abstract
A method for controlling movement of a moving body includes: obtaining a first voxel set of an obstacle, where the first voxel set includes at least one first voxel that identifies the obstacle in space in which the moving body is located; determining a valid moving path based on a mapping relationship between a voxel and a moving path and the first voxel set; and controlling the moving body to move along the valid moving path.