Roman Black wrote: > Subject: Re: [PIC]: Genetic Programming > > > Peter Bruinsma wrote: > > > > Hi, > > > > I'm new to PICs. What I'm wondering is. > > > > Can one PIC clone itself into another PIC? > > > > Specifically, what I'd like to accomplish (some day) is genetic > > programming (GP) implemented on a PIC, such that > > - some learned behavior is stored > > - this behavior somehow 'maps' to program snippets > > - the program snippets and the main program are somehow integrated > > (I'll worry about the details ;)and burned into the other PIC > > - learning resumes on the other PIC and the process will repeat > > > I think this is a great idea! Very exciting. > Here's some suggestions: > * Use a big PIC like 16F877 etc > * keep main "brain" in lower half of the code > memory, and use it almost like an interpreter, so > the actual personality "values" of the robot are > stored in top memory. > * the personality values can be constantly adjusted > by the bot itself so it can "learn" stuff. > * have a few bots competing for "food" from stationary > chargers etc. > * make each bot "grade" it's own performance, then > if it meets a bot that is stupider, it can be dominant > and download it's entire personality variables into > the dumber bot, or the areas of its personality > that are superior. > * if you split the personality stuff into areas, like > * locating food sources > * navigating obstacles > * energy conservation > * jostling other bots for food > * avoiding danger > etc, the bots can become proficient at different > tasks and then train each other in their personal > specialty. > Of course at this point there would be serious risk of one bot downloading malicious code into another bot. Now suddenly the bots would require an immune system. It would turn into core wars! I was thinking along the line of legged robots who are learning how to walk from scratch, e.g. they have all the necessary hardware but they need to 'come up' with the software. Fitness is measured by the amount of movement over time, stability, and smoothness of movement. Feeback from a couple of accellerometers in the head and either GPS or a local 3D tracking system would be required. (I have a theory about walking that I would like to test, namely that an organism that can walk has learned how to move around while using the least amount of energy, a simple fitness test!) Peter. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body