Things Bus: Difference between revisions

From Pumping Station One
No edit summary
Line 26: Line 26:
Actuators consume data by using a zmq bind PULL socket
Actuators consume data by using a zmq bind PULL socket


=== Neurons ===
=== Neuron ===


Nuerons communicate between sensors and actuators, and decide what effect, if any, sensory input should have on actuators.
Nuerons communicate between sensors and actuators, and decide what effect, if any, sensory input should have on actuators.
Line 33: Line 33:


Neurons consume information around by using zmq connect SUB sockets to sensors
Neurons consume information around by using zmq connect SUB sockets to sensors
Nuerons send information to actualtors by using zmq connect PUSH sockets to actuators.
Nuerons send information to actuators by using zmq connect PUSH sockets to actuators.


=== Mixed mode/Multi mode nodes ===
=== Mixed mode/Multi mode nodes ===
Line 47: Line 47:
     #!/usr/bin/env python
     #!/usr/bin/env python
     import zmq
     import zmq
   
      
      
     context = zmq.Context.instance()
     context = zmq.Context.instance()