Giter Club home page Giter Club logo

Comments (6)

mfuntowicz avatar mfuntowicz commented on May 19, 2024

Hi @luarsu,

The PigChaseSymbolicStateBuilder class gives you an example how to retrieve the positions of entities in the environment: https://github.com/Microsoft/malmo-challenge/blob/master/ai_challenge/pig_chase/environment.py#L58

Basically, when your retrieve a world_observation from the AgentHost, there is a field named 'entities' you can access which holds all the coordinates (x, y, z, yaw, name) for all the entities.

Let us know if you have more questions,
Hope it helps,

Morgan

from malmo-challenge.

Haishion avatar Haishion commented on May 19, 2024

Hi, @mfuntowicz
When I'm detecting the position of Agent_1 and target, sometimes there are errors. For example, they are not included in state information; or the position of Agent_1 doesn't change in 2 sequential checks.

from malmo-challenge.

mfuntowicz avatar mfuntowicz commented on May 19, 2024

Hi @Haishion,

Is this similar to issue #37 ?

from malmo-challenge.

Haishion avatar Haishion commented on May 19, 2024

@mfuntowicz yes, almost the same as #37
I lost target for a few times, and sometimes it's not in the play-area.

Besides, I just get a strange error as shown in following picture. This happened randomly after a number of episodes. I'm using your baseline file with my agent set as Agent_2.

qq 20170512191258

from malmo-challenge.

mfuntowicz avatar mfuntowicz commented on May 19, 2024

Running the baselines "out of the box" will only run 500 steps. Does that match with the number of steps ran before you see this error ? In such case it's just that the experiment is done, but we don't gracefully detect it.

You can increase the number of epochs run on the baseline with the -e parameter (default to 5) in the command line:

python pig_chase_baseline.py -e 100 ...

Regarding your comment on the target outside the play-area, do you mean "outside the area delimited by the fences" ? In such case did it happen at the beggining of the experiment, or after some actions ?

The pig is randomly placed at each episode start. In the case you see this happen when a new episode is starting is something we definitively should take a closer look.

Morgan

from malmo-challenge.

Haishion avatar Haishion commented on May 19, 2024

Hi, @mfuntowicz
Thanks for your reply. However, as far as I can see, the error is not due to experiment getting done, since I've made the maximum number of loops large enough.

Yes, I mean that the target is sometimes out of the area delimited by the fences, and this can happen during an episode.

from malmo-challenge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.