When I try to override the function CollectObservations(VectorSensor sensor), said sensor is null.
I don’t know if i’m using it correcly, but I can’t find anywhere how to use it. I want to tell my agent where the target is.
Thanks
When I try to override the function CollectObservations(VectorSensor sensor), said sensor is null.
I don’t know if i’m using it correcly, but I can’t find anywhere how to use it. I want to tell my agent where the target is.
Thanks
Strange, what version of ML-Agents are you using? Did you setup the number of vector observations in the Behavior Parameters (see here : ml-agents/docs/Learning-Environment-Design-Agents.md at main · Unity-Technologies/ml-agents · GitHub)? If the number of vector observations is 0, then there will not be a VectorSensor passed to CollectObservations.
I am using ml-agents version 1.6.0. I have got same error to.
Can you send me a screen shot of your Behavior Parameters in the inspector? If the number of vector observations is greater than 1, the VectorSensor should not be null. This would be a bug
I did another solution and null error is gone. My mistake. Sensor works fine.
WHAT DID YOU DO?