“…is the initial position of the spacecraft. Moreover, Q = diag ([20,20,20, 1500, 1500, 2000, 1, 1, 1, 1, 1, 1]), R = diag ([1, 1, 1,10,10,10]) and ρ = 500000 are the obstacle avoidance weight matrices of the spacecraft. However, the weight matrices are adjusted to 0 if there are no obstacles on the trajectory of the spacecraft.Then, to show the effectiveness of the obstruct avoidance of the spacecraft, the parameters of the four obstacles are shown as follow:…”