浏览代码
Merge pull request #4825 from Unity-Technologies/sensor-types
Merge pull request #4825 from Unity-Technologies/sensor-types
[WIP] Observation Types/MLA-1734-demo-provider
GitHub
4 年前
当前提交
67ad9651
共有 47 个文件被更改,包括 484 次插入 和 218 次删除
-
11com.unity.ml-agents/Runtime/Communicator/GrpcExtensions.cs
-
52com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/Observation.cs
-
9docs/Python-API.md
-
16gym-unity/gym_unity/envs/__init__.py
-
6gym-unity/gym_unity/tests/test_gym.py
-
30ml-agents-envs/mlagents_envs/base_env.py
-
56ml-agents-envs/mlagents_envs/communicator_objects/observation_pb2.py
-
27ml-agents-envs/mlagents_envs/communicator_objects/observation_pb2.pyi
-
33ml-agents-envs/mlagents_envs/rpc_utils.py
-
14ml-agents-envs/mlagents_envs/tests/test_envs.py
-
19ml-agents-envs/mlagents_envs/tests/test_rpc_utils.py
-
6ml-agents-envs/mlagents_envs/tests/test_steps.py
-
9ml-agents/mlagents/trainers/demo_loader.py
-
2ml-agents/mlagents/trainers/optimizer/torch_optimizer.py
-
2ml-agents/mlagents/trainers/policy/torch_policy.py
-
2ml-agents/mlagents/trainers/ppo/optimizer_torch.py
-
14ml-agents/mlagents/trainers/sac/optimizer_torch.py
-
14ml-agents/mlagents/trainers/tests/dummy_config.py
-
32ml-agents/mlagents/trainers/tests/mock_brain.py
-
12ml-agents/mlagents/trainers/tests/simple_test_envs.py
-
12ml-agents/mlagents/trainers/tests/test_agent_processor.py
-
4ml-agents/mlagents/trainers/tests/test_demo_loader.py
-
6ml-agents/mlagents/trainers/tests/test_rl_trainer.py
-
6ml-agents/mlagents/trainers/tests/test_trajectory.py
-
4ml-agents/mlagents/trainers/tests/torch/test_ghost.py
-
6ml-agents/mlagents/trainers/tests/torch/test_hybrid.py
-
16ml-agents/mlagents/trainers/tests/torch/test_networks.py
-
4ml-agents/mlagents/trainers/tests/torch/test_policy.py
-
2ml-agents/mlagents/trainers/tests/torch/test_ppo.py
-
48ml-agents/mlagents/trainers/tests/torch/test_reward_providers/test_curiosity.py
-
26ml-agents/mlagents/trainers/tests/torch/test_reward_providers/test_extrinsic.py
-
28ml-agents/mlagents/trainers/tests/torch/test_reward_providers/test_gail.py
-
32ml-agents/mlagents/trainers/tests/torch/test_reward_providers/test_rnd.py
-
8ml-agents/mlagents/trainers/tests/torch/test_reward_providers/utils.py
-
6ml-agents/mlagents/trainers/tests/torch/test_simple_rl.py
-
6ml-agents/mlagents/trainers/tests/torch/test_utils.py
-
2ml-agents/mlagents/trainers/torch/components/bc/module.py
-
4ml-agents/mlagents/trainers/torch/components/reward_providers/curiosity_reward_provider.py
-
4ml-agents/mlagents/trainers/torch/components/reward_providers/gail_reward_provider.py
-
2ml-agents/mlagents/trainers/torch/components/reward_providers/rnd_reward_provider.py
-
12ml-agents/mlagents/trainers/torch/model_serialization.py
-
32ml-agents/mlagents/trainers/torch/networks.py
-
10ml-agents/mlagents/trainers/torch/utils.py
-
6ml-agents/tests/yamato/scripts/run_llapi.py
-
8protobuf-definitions/proto/mlagents_envs/communicator_objects/observation.proto
-
31com.unity.ml-agents/Runtime/Sensors/ITypedSensor.cs
-
11com.unity.ml-agents/Runtime/Sensors/ITypedSensor.cs.meta
|
|||
namespace Unity.MLAgents.Sensors |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// The ObservationType enum of the Sensor.
|
|||
/// </summary>
|
|||
internal enum ObservationType |
|||
{ |
|||
// Collected observations are generic.
|
|||
Default = 0, |
|||
// Collected observations contain goal information.
|
|||
Goal = 1, |
|||
// Collected observations contain reward information.
|
|||
Reward = 2, |
|||
// Collected observations are messages from other agents.
|
|||
Message = 3, |
|||
} |
|||
|
|||
|
|||
/// <summary>
|
|||
/// Sensor interface for sensors with variable types.
|
|||
/// </summary>
|
|||
internal interface ITypedSensor |
|||
{ |
|||
/// <summary>
|
|||
/// Returns the ObservationType enum corresponding to the type of the sensor.
|
|||
/// </summary>
|
|||
/// <returns>The ObservationType enum</returns>
|
|||
ObservationType GetObservationType(); |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 3751edac8122c411dbaef8f1b7043b82 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue