This paper proposes a solution to controls warm robots in an effort to avoid obstacles, moving to the goal by the method of Null Space based Behavior (NSB) control of an individual in the swarm. This paper also provides the stability analysis of the converging process by investigating the relationship between single agents, and the analysis result is proved by using the Lyapunov theory. Finally, the simulation results in two-dimensional space have confirmed the obtained theoretical results.