diff --git a/docs/Learning-Environment-Examples.md b/docs/Learning-Environment-Examples.md index dbaedab1c8..84a5132497 100644 --- a/docs/Learning-Environment-Examples.md +++ b/docs/Learning-Environment-Examples.md @@ -99,7 +99,7 @@ If you would like to contribute environments, please see our * -0.0025 for every step. * +1.0 if the block touches the goal. * Brains: One brain with the following observation/action space. - * Vector Observation space: (Continuous) 15 variables corresponding to position and velocities of agent, block, and goal. + * Vector Observation space: (Continuous) 70 variables corresponding to 14 ray-casts each detecting one of three possible objects (wall, goal, or block). * Vector Action space: (Continuous) Size of 2, corresponding to movement in X and Z directions. * Visual Observations (Optional): One first-person camera. Use `VisualPushBlock` scene. * Reset Parameters: None. diff --git a/python/unityagents/rpc_communicator.py b/python/unityagents/rpc_communicator.py index 95303bffe2..985cadd904 100755 --- a/python/unityagents/rpc_communicator.py +++ b/python/unityagents/rpc_communicator.py @@ -15,7 +15,8 @@ class UnityToExternalServicerImplementation(UnityToExternalServicer): - parent_conn, child_conn = Pipe() + def __init__(self): + self.parent_conn, self.child_conn = Pipe() def Initialize(self, request, context): self.child_conn.send(request) diff --git a/unity-environment/Assets/ML-Agents/Scripts/Agent.cs b/unity-environment/Assets/ML-Agents/Scripts/Agent.cs index 12226ab654..273a43b921 100755 --- a/unity-environment/Assets/ML-Agents/Scripts/Agent.cs +++ b/unity-environment/Assets/ML-Agents/Scripts/Agent.cs @@ -257,10 +257,9 @@ public abstract class Agent : MonoBehaviour void OnEnable() { textureArray = new Texture2D[agentParameters.agentCameras.Count]; - for (int i = 0; i < brain.brainParameters.cameraResolutions.Length; i++) + for (int i = 0; i < agentParameters.agentCameras.Count; i++) { - textureArray[i] = new Texture2D(brain.brainParameters.cameraResolutions[i].width, - brain.brainParameters.cameraResolutions[i].height, TextureFormat.RGB24, false); + textureArray[i] = new Texture2D(1, 1, TextureFormat.RGB24, false); } id = gameObject.GetInstanceID(); Academy academy = Object.FindObjectOfType() as Academy;