Four-dimensional motion planning algorithm based on improved Rapidly-exploring Random Trees of on-orbit servicing autonomous spacecraft maneuvering in close proximity to some structures is studied. This planner satisfies the requirement of servicing spacecraft maneuvering in small space with complex obstacles. The results shows that this four-dimensional motion planner can obtain the feasible motion trajectories in close proximity to some structures.