Stop Python script running on a nao robot touching his head
问题 My problem is the following. I have a script in Python that is executed so that the robot does perform various actions without stopping until the execution stops, however for security reasons (in case the robot goes crazy and wants to kill us all) I need to add this instruction to stop it using the touch sensor of his head in case this is pressed. I read a little about the ALTouch module with which the TouchChanged() module can be generated, but it acts on all the sensors (including movements