My problem is as follows. I have a Python script that runs so that the NAO robot performs various non-stop actions until the execution stops, however for security reasons (in case the robot goes crazy and wants to kill us all ) I need to add some instruction to stop it using the touch sensor of your head in case it is pressed.
I read a bit about the ALTouch module with which you can generate the TouchChanged module () but it acts on all the sensors and not just on the touch sensor in the head.
Some idea or related documentation will be welcome.