The collision detection algorithm of the robot body previously needed to rely on the surface geometry information of the colliding object and no deformation was allowed during the collision process. To solve this problem, a new robot body collision detection algorithm that uses the force information of the six-axis force/torque sensor at the base to self-constrain is proposed which does not rely on the geometric information of the colliding object surface, and the deformation also allows deformation during the collision. In terms of sensor data preprocessing, a gravity and dynamic force compensation algorithm for the six-axis force/torque sensor at the base is proposed to ensure that the reading of the six-axis force/torque sensor at the base always maintains the value of 0 when the robot is working. Then, the robot is considered to have collided with the outside world when the sensor reading exceeds the set threshold. And a precision factor is proposed to analyze the influence of force and collision distance on the accuracy of the algorithm. Finally, the new algorithm proposed in this paper is compared with the traditional algorithm that relies on the geometric information of the colliding body surface. The experimental results indicate that the accuracy of the collision point detection algorithm proposed in this paper is close to that of the traditional method, but it does not need to rely on the geometric information of the collision body surface, and there is no requirement for whether there is deformation during the contact process. It can be concluded that the collision distance is the most important factor affecting the accuracy of the algorithm, followed by the conclusion of the magnitude of the collision force through the calculation of the precision factor. The results show that this method can effectively detect the collision point of the machine body, and the maximum error at the farthest point of the robot is 8.712%, which lays a certain foundation for the subsequent research on human-machine collaboration in small collaborative robots.