Skip to content Skip to sidebar Skip to footer

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 secur

Solution 1:

Instead of subscribing to TouchChanged, you can subscribe to the head only with the 3 events (for the 3 tactile buttons):

  • FrontTactilTouched
  • MiddleTactilTouched
  • RearTactilTouched

They will be raised with value 1 when touch starts, and 0 when touch ends. So you will want to filter and only stop your dance when value is 1.

Post a Comment for "Stop Python Script Running On A Nao Robot Touching His Head"