AI project: "world state" seems to be required.

Alan Grimes squeak-dev at lists.squeakfoundation.org
Sun Sep 8 18:45:13 UTC 2002


Bob Arning wrote:
> >I have been looking at the possibility of using a raw paste-up morph
> >without a world state. It doesn't appear to be viable because there
> >doesn't appear to be a way to have the facility of hands and the 
>> control of time through the manipulation of the time stepping without 
> it.

> I don't think you've described anything that requires getting tangled 
> up in "worlds". Here is a simple experiment:

> - get a PasteUpMorph from the new morph menu or objects tool
> - get a ClockMorph and drop it in the PasteUpMorph
> - the clock will start ticking -- you have stepping
> - you can pick up the ClockMorph and set it back down -- you have hands

um, I was not even talking about a realtime clock. If you inspect
"worldState" on your active world you will notice that it has an
internal clock that advances every millisecond or so.. It appears that
this clock drives all the other activities in the world. To synchronize
the AI with the world it operates on it appears that I need to be able
to manipulate this clock. 

Furthermore, in my attempt to create an Image Morph world I have been
unable to cause the world associated with that immage morph to function. 

Ned Konz wrote:
> > I have been looking at the possibility of using a raw paste-up
> > morph without a world state. It doesn't appear to be viable because
> > there doesn't appear to be a way to have the facility of hands and
> > the control of time through the manipulation of the time stepping
> > without it.

> What's wrong with WorldState?

I have not been able to use it. (I am talking about the world state of
the AIWorld, independant of the usual world system). 

> > Now that I know that I can obtain a copy of the screen without
> > "ImageMorph" the necessity or utility of image morph is unclear.

> So don't use one.

It would seem to be more efficient to use ImageMorph so that I am not
maloc()ing a new form each time I want to take a look at the world... 

> > My previous question about how to "start the clock" of world morph
> > and cause it to function so that it can support normal squeak
> > functionality (or some restricted version thereof) remains open.

> I don't understand; the World already supports normal Squeak
> functionality. Why do you feel it's not what you need?

I have, to this point, been unable to get my nested world to function. 

> > The system will function through a system by which the AI will
> > recive input from the screen and have the ability to move a mouse
> > "hand" as well as type on an immaginary keyboard.

> So read the World's/Display's bitmap (or Form) directly to see what's
> being displayed.

That sounds like what I am trying to do with Image Morph. 

> For typing and moving the mouse, either use a RemoteHand, or use the
> event playback hooks (see EventRecorderMorph and HandMorphForReplay).

I havn't gotten to that point yet as I am still trying to achieve the
basic functionality of AIWorld.

> No reason that I can see to change the World or WorldState.

=\

I'm sorry people, but It seems that I _WILL_ need to start a mrohpic
world inside an ImageMorph. Where can I find the appropriate
documentation?

-- 
Latancy is your enemy.
Bandwidth is your friend.
http://users.rcn.com/alangrimes/



More information about the Squeak-dev mailing list