atTC2 / leslie

UoB CS Intelligent Robotics Exercise 2
0 stars 1 forks source link

Add tweet instruction listening #97

Closed atTC2 closed 7 years ago

atTC2 commented 7 years ago

Allows you to tweet Leslie with 'table x' where x is a number (1-5) and it'll move to the table.

You can also tag a friend (they have to have a twitter handle) - currently incldues @tombclarke, @ben_durrans and @ParityB1t and they'll be set to the friend that can unlock the system (if multiple are tagged, the first found shall be used).

Note: The tweepy streamer doesn't seem to like shutting down, so when closing the system you may see this:

^C[stageros-14] killing on exit
...
[twitter_control-11] killing on exit
...
[twitter_control-11] escalating to SIGTERM
[twitter_control-11] escalating to SIGKILL
...
Shutdown errors:
 * process[twitter_control-11, pid 24204]: required SIGKILL. May still be running.
shutting down processing monitor...
... shutting down processing monitor complete

twitter_stream.disconnect() seems to have not effect - and exit(0) doesn't help either. It doesn't affect the system, it just means shutdown is slower and with red text - so may be nice to fix at some point.

Closes #92

atTC2 commented 7 years ago

Also added friend support.