Close

AIvan Under Construction

A project log for Ivan the Teambuilt Robot

An e-NABLE robotics project to give hands to those without use of their hands. Designed with your help.

les-hallLes Hall 08/19/2016 at 01:330 Comments

"AIvan" is what I am calling Ivan's AI brain. I am writing AIvan in C for portability and so I can get back to basics. I have been coding in C-like languages for so long that I have forgotten what little original K&R C I ever did know! With some bit of stumbling and playing around with terminal emulation (retro fun a la nostalgia!) all day and had a blast doing it.

Then in an after-dinner tired and lazy state of mind I came across file I/O. Even though it looks very familiar and learnable, I am too tired to continue, alas and alack... What I can do is tell you the structure of Ivan that I have created.

I'm calling Ivan's long term memory his disk file(s). In main() I have put a wake_up() function which will contain a file read operation, a while loop containing a state_of_mind() function which I may rename, and when the state_of_mind() function ends the while loop with a zero value in it's return function, the final function executed is called go_to_sleep() in which the long term memory write occurs.

After some (not much lol) thought I decided to keep the long term memory file open for access during the waking state because that's how we humans think after all. We don't recall everything in the morning and keep it all in short term memory throughout the day, then save and forget it all at night. We always have access to it during the waking state.

Similarly RAM is for short term memory. Well, I may not have the clearest and best thought out way of doing things but this is the type of planning that I am doing at this time. Up next is to actually add some file i/o which will begin with a single number for easy initial effort, then some more and them a whole lot more after that - you know how it goes. I will upload a zip file called AIvan_1 in a moment so you can look at it, laugh and point and make funny faces, then tell me how stoopid I am lol. As long as you teach me what is a better way to do itI dont mind.

Les

Discussions