浏览代码
Merge branch 'develop-base-teammanager' into develop-agentprocessor-teammanager
/develop/coma2/samenet
Merge branch 'develop-base-teammanager' into develop-agentprocessor-teammanager
/develop/coma2/samenet
Ervin Teng
4 年前
当前提交
b6f88d6d
共有 191 个文件被更改,包括 1509 次插入 和 687 次删除
-
2.yamato/com.unity.ml-agents-performance.yml
-
1.yamato/gym-interface-test.yml
-
16Project/Assets/ML-Agents/Examples/Basic/Scripts/BasicActuatorComponent.cs
-
3Project/Assets/ML-Agents/Examples/GridWorld/Scripts/GridAgent.cs
-
25Project/Assets/ML-Agents/Examples/Match3/Prefabs/Match3Heuristic.prefab
-
25Project/Assets/ML-Agents/Examples/Match3/Prefabs/Match3VectorObs.prefab
-
25Project/Assets/ML-Agents/Examples/Match3/Prefabs/Match3VisualObs.prefab
-
10Project/Assets/ML-Agents/Examples/Match3/Scenes/Match3.unity
-
166Project/Assets/ML-Agents/Examples/Match3/Scripts/Match3Agent.cs
-
13Project/Assets/ML-Agents/Examples/Match3/Scripts/Match3Board.cs
-
2Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/SensorBase.cs
-
2Project/ProjectSettings/UnityConnectSettings.asset
-
51README.md
-
74com.unity.ml-agents.extensions/Runtime/Match3/Match3Actuator.cs
-
10com.unity.ml-agents.extensions/Runtime/Match3/Match3ActuatorComponent.cs
-
8com.unity.ml-agents.extensions/Runtime/Match3/Match3Sensor.cs
-
9com.unity.ml-agents.extensions/Runtime/Sensors/GridSensor.cs
-
9com.unity.ml-agents.extensions/Runtime/Sensors/PhysicsBodySensor.cs
-
25com.unity.ml-agents.extensions/Runtime/Teams/BaseTeamManager.cs
-
34com.unity.ml-agents/CHANGELOG.md
-
7com.unity.ml-agents/Runtime/Academy.cs
-
13com.unity.ml-agents/Runtime/Actuators/ActionSpec.cs
-
50com.unity.ml-agents/Runtime/Actuators/ActuatorManager.cs
-
27com.unity.ml-agents/Runtime/Actuators/VectorActuator.cs
-
50com.unity.ml-agents/Runtime/Agent.cs
-
68com.unity.ml-agents/Runtime/Analytics/Events.cs
-
14com.unity.ml-agents/Runtime/Analytics/InferenceAnalytics.cs
-
64com.unity.ml-agents/Runtime/Communicator/GrpcExtensions.cs
-
5com.unity.ml-agents/Runtime/Communicator/RpcCommunicator.cs
-
5com.unity.ml-agents/Runtime/Communicator/UnityRLCapabilities.cs
-
26com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/AgentInfo.cs
-
39com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/Capabilities.cs
-
52com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/Observation.cs
-
21com.unity.ml-agents/Runtime/Inference/ApplierImpl.cs
-
70com.unity.ml-agents/Runtime/Inference/BarracudaModelParamLoader.cs
-
126com.unity.ml-agents/Runtime/Inference/GeneratorImpl.cs
-
46com.unity.ml-agents/Runtime/Inference/ModelRunner.cs
-
7com.unity.ml-agents/Runtime/Inference/TensorApplier.cs
-
63com.unity.ml-agents/Runtime/Inference/TensorGenerator.cs
-
1com.unity.ml-agents/Runtime/Inference/TensorNames.cs
-
9com.unity.ml-agents/Runtime/Policies/BehaviorParameters.cs
-
11com.unity.ml-agents/Runtime/Policies/HeuristicPolicy.cs
-
14com.unity.ml-agents/Runtime/Policies/RemotePolicy.cs
-
8com.unity.ml-agents/Runtime/Sensors/BufferSensor.cs
-
15com.unity.ml-agents/Runtime/Sensors/CameraSensor.cs
-
24com.unity.ml-agents/Runtime/Sensors/ObservationWriter.cs
-
10com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensor.cs
-
9com.unity.ml-agents/Runtime/Sensors/Reflection/ReflectionSensorBase.cs
-
9com.unity.ml-agents/Runtime/Sensors/RenderTextureSensor.cs
-
3com.unity.ml-agents/Runtime/Sensors/SensorComponent.cs
-
7com.unity.ml-agents/Runtime/Sensors/SensorShapeValidator.cs
-
11com.unity.ml-agents/Runtime/Sensors/StackingSensor.cs
-
24com.unity.ml-agents/Runtime/Sensors/VectorSensor.cs
-
12com.unity.ml-agents/Runtime/SideChannels/EngineConfigurationChannel.cs
-
26com.unity.ml-agents/Runtime/SideChannels/SideChannelManager.cs
-
18com.unity.ml-agents/Tests/Editor/Actuators/ActuatorManagerTests.cs
-
11com.unity.ml-agents/Tests/Editor/Actuators/TestActuator.cs
-
19com.unity.ml-agents/Tests/Editor/Actuators/VectorActuatorTests.cs
-
19com.unity.ml-agents/Tests/Editor/Analytics/InferenceAnalyticsTests.cs
-
6com.unity.ml-agents/Tests/Editor/BehaviorParameterTests.cs
-
32com.unity.ml-agents/Tests/Editor/Communicator/GrpcExtensionsTests.cs
-
2com.unity.ml-agents/Tests/Editor/EditModeTestInternalBrainTensorGenerator.cs
-
9com.unity.ml-agents/Tests/Editor/ParameterLoaderTest.cs
-
2com.unity.ml-agents/Tests/Editor/Sensor/CameraSensorComponentTest.cs
-
12com.unity.ml-agents/Tests/Editor/Sensor/ObservationWriterTests.cs
-
2com.unity.ml-agents/Tests/Editor/Sensor/RenderTextureSensorComponentTests.cs
-
15com.unity.ml-agents/Tests/Editor/Sensor/StackingSensorTests.cs
-
4com.unity.ml-agents/Tests/Runtime/RuntimeAPITest.cs
-
2docs/Background-Unity.md
-
11docs/Migrating.md
-
9docs/Python-API.md
-
10docs/Training-ML-Agents.md
-
16gym-unity/gym_unity/envs/__init__.py
-
6gym-unity/gym_unity/tests/test_gym.py
-
52ml-agents-envs/mlagents_envs/base_env.py
-
17ml-agents-envs/mlagents_envs/communicator.py
-
6ml-agents-envs/mlagents_envs/communicator_objects/agent_info_pb2.py
-
4ml-agents-envs/mlagents_envs/communicator_objects/agent_info_pb2.pyi
-
11ml-agents-envs/mlagents_envs/communicator_objects/capabilities_pb2.py
-
6ml-agents-envs/mlagents_envs/communicator_objects/capabilities_pb2.pyi
-
56ml-agents-envs/mlagents_envs/communicator_objects/observation_pb2.py
-
27ml-agents-envs/mlagents_envs/communicator_objects/observation_pb2.pyi
-
8ml-agents-envs/mlagents_envs/env_utils.py
-
55ml-agents-envs/mlagents_envs/environment.py
-
12ml-agents-envs/mlagents_envs/mock_communicator.py
-
47ml-agents-envs/mlagents_envs/rpc_communicator.py
-
44ml-agents-envs/mlagents_envs/rpc_utils.py
-
2ml-agents-envs/mlagents_envs/side_channel/engine_configuration_channel.py
-
2ml-agents-envs/mlagents_envs/side_channel/environment_parameters_channel.py
-
14ml-agents-envs/mlagents_envs/tests/test_envs.py
-
54ml-agents-envs/mlagents_envs/tests/test_rpc_communicator.py
-
19ml-agents-envs/mlagents_envs/tests/test_rpc_utils.py
-
6ml-agents-envs/mlagents_envs/tests/test_steps.py
-
1ml-agents/mlagents/torch_utils/__init__.py
-
37ml-agents/mlagents/torch_utils/torch.py
-
15ml-agents/mlagents/trainers/cli_utils.py
-
9ml-agents/mlagents/trainers/demo_loader.py
-
12ml-agents/mlagents/trainers/env_manager.py
-
15ml-agents/mlagents/trainers/learn.py
-
4ml-agents/mlagents/trainers/optimizer/torch_optimizer.py
|
|||
using System.Collections.Generic; |
|||
using Unity.MLAgents; |
|||
using Unity.MLAgents.Sensors; |
|||
|
|||
private readonly string m_Id = System.Guid.NewGuid().ToString(); |
|||
readonly int m_Id = TeamManagerIdCounter.GetTeamManagerId(); |
|||
public virtual void RegisterAgent(Agent agent) |
|||
{ |
|||
} |
|||
public virtual void RegisterAgent(Agent agent) { } |
|||
public virtual void OnAgentDone(Agent agent, Agent.DoneReason doneReason, List<ISensor> sensors) |
|||
{ |
|||
// Possible implementation - save reference to Agent's IPolicy so that we can repeatedly
|
|||
// call IPolicy.RequestDecision on behalf of the Agent after it's dead
|
|||
// If so, we'll need dummy sensor impls with the same shape as the originals.
|
|||
agent.SendDoneToTrainer(); |
|||
} |
|||
|
|||
public virtual void AddTeamReward(float reward) |
|||
{ |
|||
|
|||
} |
|||
|
|||
public string GetId() |
|||
public int GetId() |
|||
{ |
|||
return m_Id; |
|||
} |