Self-collision detection and prevention for humanoid robots | Synapse