Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question In Ml-Agents GridWorld, where is CollectObservations ?

Discussion in 'ML-Agents' started by brunorcabral, Dec 12, 2020.

  1. brunorcabral

    brunorcabral

    Joined:
    Apr 12, 2020
    Posts:
    4
    Hi everyone,
    In other examples the agents have CollectObservations() defined, but in GridWorld it doesn't. I know that it is making decisions based on Camera visualization, but which script does it?
    My idea is to create a scene with two targets, one would give more points than the other, but I don't know where do I put the new prefeb as a new target.
    Thanks,
    Bruno
     
  2. awjuliani

    awjuliani

    Unity Technologies

    Joined:
    Mar 1, 2017
    Posts:
    69
    Hello. In addition to the `CollectObservations' method, observations can be collected using sensor components attached to the agent gameobject. If you take a look at the agent gameobject in GridWorld, you will see that it has a Camera sensor attached.