LARG / HFO

Half Field Offense in Robocup 2D Soccer
MIT License
231 stars 93 forks source link

Players' info always 0 in low-level features #69

Open bluecontra opened 6 years ago

bluecontra commented 6 years ago

Hi, @mhauskn I am training my RL agents in this Env and I found that the information of 'players' seems to always be 0. Here is the an example of the 'state' I got from below:

state=hfo.HFOEnvironment()
...
print(state)

image

image The scenario is 3v3 so the low-level features are 104-dim. According to the 'Manual', the 74-81,82-89,90-97 should be the features of the opponents. Why always 0 here ? Can you kindly help me with it ? I checked the 'Manual' and found that the feature will be given 0 if its not valid, why these features always invalid ?

Further, I check the high-level feature, it looks good when running even some info initially '-2'. image image

One more thing is, is there some command or option to shut the below logs down, it produces to many logs. image

mhauskn commented 6 years ago

Sometimes the features are zero before all the players are loaded, and become nonzero after the episode starts.

On Tue, Jul 31, 2018, 12:08 AM Hongyao Tang notifications@github.com wrote:

Hi, I am training my RL agents in this Env and I found that the information of 'players' seems to always be 0. Here is the an example of the 'state' I got from below:

state=hfo.HFOEnvironment() ... print(state)

[image: image] https://user-images.githubusercontent.com/17591106/43443471-884e5298-94d3-11e8-9349-b95c4e2272d3.png

[image: image] https://user-images.githubusercontent.com/17591106/43442976-348f499c-94d2-11e8-9cd9-6101d7a17fa4.png The scenario is 3v3 so the low-level features are 104-dim. According to the 'Manual', the 74-81,82-89,90-97 should be the features of the opponents. Why always 0 here ? Can you kindly help me with it ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/LARG/HFO/issues/69, or mute the thread https://github.com/notifications/unsubscribe-auth/AABNOfv5ndyiq5rIoW7flml0hUAdR5Bjks5uMAJcgaJpZM4Vntl3 .