Text this: Research on Robot Force Compensation and Collision Detection Based on Six-Dimensional Force Sensor