title: Referencing objects through a tcp/ip connection - for robotics
body: <p>I've begun to design a framework for a robot I'm going to build. The control-software is - for reasons of later portability and also for the challenge herein - an attempt at mimicking the human system (of course drastically simplified). Thus the framework has a nervous system, consisting of a brain and spinal cord, the latter through which the brain controls the sensors and 'limbs' of the peripheral nervous system - i.e. the robots camera, microphones, motorcontrols and so on.</p>
  
  <p>My challenge is in that I can't figure out how to send commands from the brain - via the spinal cord - to the sensor objects, initialized by the peripheral nervous system controller. In my implementation, the spinal cord is a tcp/ip server, accepting connections from the sensors and sending them up to the brain. How would something like this be accomplished? The brain has an awareness of the sensory objects, but it shouldn't be able to instantiate them - this is only for the peripheral nervous system. So how to call functions on those sensor objects, from the brain via the spinal cord, to the peripheral nervous system and finally to the sensor in question? </p>