I'm trying to create a Python API to interface with a NAO robot, and have been testing on the Choregraphe virtual robot. As of 24 hours ago, seemingly out of nowhere, this stopped working because whenever I run:
foo = ALProxy(ALfunction, ip, port)
and try to use it like:
foo.do()
I get the error:
RuntimeError: ALfunction::do Socket is not connected
Real example:
def sayText(args, ip, port):
tts = ALProxy("ALTextToSpeech", ip, port)
print(str(args[0]))
tts.say(str(args[0]))
when run, will give: File "C:\Python27\lib\site-packages\naoqi.py", line 371, in method_missing raise e RuntimeError: ALTextToSpeech::say Socket is not connected
What is the issue? How can I fix it?
This issue originally occurred on my laptop from the very start, and so I have been working on my PC where the issue seemingly just did not occur. I thought it might be a firewall thing, but clearly not since I didn't change any settings between yesterday and today.
Beyond that I have no idea where to even begin.