The logic of interactive biorobotics