Comments (6)
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.
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.
Hi @Haishion,
Is this similar to issue #37 ?
from malmo-challenge.
@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.
from malmo-challenge.
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.
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)
- Add a docker example to run training off of local code
- agent return a strange state HOT 2
- Where can I find the definition of entity "pig"? HOT 1
- ImportError: Module use of python27.dll conflicts with this version of Python HOT 1
- unexpected stop of the environment "NetworkDispatcher exception io.netty.handler.timeout.ReadTimeoutException" HOT 3
- Cannot run pig_chase_human_vs_agent.py or pig_chase_baseline.py HOT 1
- Is the pig supposed to move? HOT 3
- Our agent will be evaluated by playing with all other teams' agents, or just the challenge agent. HOT 7
- PigChaseSymbolicStateBuilder returns inconsistent states HOT 3
- Trained model for submission
- Using PigChaseSymbolicStateBuilder for the submission agent
- agent_loop in evaluation.py randomizes agent types
- Agent appearance not reset in evaluation.py HOT 2
- Method do of PigChaseEnvironment returns inconsistent type HOT 1
- Docker connection issues.
- Deadlock in pig_chase_baseline.py HOT 1
- docker run malmo, the client stucked
- from common import... is not found
- This repo is missing important files HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from malmo-challenge.