The invention discloses a
spacecraft relative motion obstacle avoidance control method based on an anti-interference control obstacle function, and the method comprises the steps: 1, initializing a
spacecraft system state and sampling time through building a
spacecraft relative motion model with external disturbance; 2, designing an unknown dynamic estimator, and adopting a low-pass filter to obtain
estimation of external disturbance; 3, constructing a
relative motion tracking error of the spacecraft, designing a
Lyapunov function, and designing a nominal controller by adopting a
Lyapunov stability theory; and 4, constructing an obstacle function of the spacecraft and the obstacle, designing an
obstacle avoidance controller according to the safety constraint of the control obstacle function, and finally integrating the
obstacle avoidance controller to actual control input. According to the invention, formalized guarantee of safety is realized, and a robust item based on an unknown dynamic estimator is embedded into a control obstacle function constraint condition, so that a
system state can be strictly prevented from entering a dangerous area even under continuous disturbance, and a provable obstacle avoidance method is provided.