GitHub
5 年前
当前提交
f7288f5d
共有 54 个文件被更改,包括 1676 次插入 和 2558 次删除
-
5.pre-commit-config.yaml
-
8UnitySDK/Assets/ML-Agents/Scripts/CommunicatorObjects/AgentActionProto.cs
-
8UnitySDK/Assets/ML-Agents/Scripts/CommunicatorObjects/AgentInfoProto.cs
-
2UnitySDK/Assets/ML-Agents/Scripts/CommunicatorObjects/BrainParametersProto.cs
-
8UnitySDK/Assets/ML-Agents/Scripts/CommunicatorObjects/EnvironmentParametersProto.cs
-
16UnitySDK/Assets/ML-Agents/Scripts/CommunicatorObjects/UnityInput.cs
-
24UnitySDK/Assets/ML-Agents/Scripts/CommunicatorObjects/UnityMessage.cs
-
16UnitySDK/Assets/ML-Agents/Scripts/CommunicatorObjects/UnityOutput.cs
-
8UnitySDK/Assets/ML-Agents/Scripts/CommunicatorObjects/UnityRlInitializationOutput.cs
-
10UnitySDK/Assets/ML-Agents/Scripts/CommunicatorObjects/UnityRlInput.cs
-
46UnitySDK/Assets/ML-Agents/Scripts/CommunicatorObjects/UnityRlOutput.cs
-
9UnitySDK/Assets/ML-Agents/Scripts/CommunicatorObjects/UnityToExternalGrpc.cs
-
216ml-agents-envs/mlagents/envs/communicator_objects/agent_action_proto_pb2.py
-
8ml-agents-envs/mlagents/envs/communicator_objects/agent_action_proto_pb2.pyi
-
391ml-agents-envs/mlagents/envs/communicator_objects/agent_info_proto_pb2.py
-
8ml-agents-envs/mlagents/envs/communicator_objects/agent_info_proto_pb2.pyi
-
302ml-agents-envs/mlagents/envs/communicator_objects/brain_parameters_proto_pb2.py
-
8ml-agents-envs/mlagents/envs/communicator_objects/brain_parameters_proto_pb2.pyi
-
65ml-agents-envs/mlagents/envs/communicator_objects/command_proto_pb2.py
-
3ml-agents-envs/mlagents/envs/communicator_objects/command_proto_pb2.pyi
-
76ml-agents-envs/mlagents/envs/communicator_objects/custom_action_pb2.py
-
5ml-agents-envs/mlagents/envs/communicator_objects/custom_action_pb2.pyi
-
76ml-agents-envs/mlagents/envs/communicator_objects/custom_observation_pb2.py
-
5ml-agents-envs/mlagents/envs/communicator_objects/custom_observation_pb2.pyi
-
76ml-agents-envs/mlagents/envs/communicator_objects/custom_reset_parameters_pb2.py
-
5ml-agents-envs/mlagents/envs/communicator_objects/custom_reset_parameters_pb2.pyi
-
202ml-agents-envs/mlagents/envs/communicator_objects/demonstration_meta_proto_pb2.py
-
8ml-agents-envs/mlagents/envs/communicator_objects/demonstration_meta_proto_pb2.pyi
-
227ml-agents-envs/mlagents/envs/communicator_objects/engine_configuration_proto_pb2.py
-
8ml-agents-envs/mlagents/envs/communicator_objects/engine_configuration_proto_pb2.pyi
-
257ml-agents-envs/mlagents/envs/communicator_objects/environment_parameters_proto_pb2.py
-
12ml-agents-envs/mlagents/envs/communicator_objects/environment_parameters_proto_pb2.pyi
-
127ml-agents-envs/mlagents/envs/communicator_objects/header_pb2.py
-
8ml-agents-envs/mlagents/envs/communicator_objects/header_pb2.pyi
-
152ml-agents-envs/mlagents/envs/communicator_objects/resolution_proto_pb2.py
-
8ml-agents-envs/mlagents/envs/communicator_objects/resolution_proto_pb2.pyi
-
66ml-agents-envs/mlagents/envs/communicator_objects/space_type_proto_pb2.py
-
2ml-agents-envs/mlagents/envs/communicator_objects/space_type_proto_pb2.pyi
-
152ml-agents-envs/mlagents/envs/communicator_objects/unity_input_pb2.py
-
8ml-agents-envs/mlagents/envs/communicator_objects/unity_input_pb2.pyi
-
186ml-agents-envs/mlagents/envs/communicator_objects/unity_message_pb2.py
-
8ml-agents-envs/mlagents/envs/communicator_objects/unity_message_pb2.pyi
-
152ml-agents-envs/mlagents/envs/communicator_objects/unity_output_pb2.py
-
8ml-agents-envs/mlagents/envs/communicator_objects/unity_output_pb2.pyi
-
104ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_initialization_input_pb2.py
-
8ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_initialization_input_pb2.pyi
-
229ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_initialization_output_pb2.py
-
8ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_initialization_output_pb2.pyi
-
405ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_input_pb2.py
-
16ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_input_pb2.pyi
-
326ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_output_pb2.py
-
20ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_output_pb2.pyi
-
68ml-agents-envs/mlagents/envs/communicator_objects/unity_to_external_pb2.py
-
55ml-agents-envs/mlagents/envs/communicator_objects/unity_to_external_pb2_grpc.py
|
|||
# -*- coding: utf-8 -*- |
|||
|
|||
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) |
|||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) |
|||
|
|||
from google.protobuf import descriptor_pb2 |
|||
from mlagents.envs.communicator_objects import ( |
|||
custom_action_pb2 as mlagents_dot_envs_dot_communicator__objects_dot_custom__action__pb2, |
|||
) |
|||
from mlagents.envs.communicator_objects import custom_action_pb2 as mlagents_dot_envs_dot_communicator__objects_dot_custom__action__pb2 |
|||
name="mlagents/envs/communicator_objects/agent_action_proto.proto", |
|||
package="communicator_objects", |
|||
syntax="proto3", |
|||
serialized_options=_b("\252\002\034MLAgents.CommunicatorObjects"), |
|||
serialized_pb=_b( |
|||
'\n;mlagents/envs/communicator_objects/agent_action_proto.proto\x12\x14\x63ommunicator_objects\x1a\x36mlagents/envs/communicator_objects/custom_action.proto"\x9c\x01\n\x10\x41gentActionProto\x12\x16\n\x0evector_actions\x18\x01 \x03(\x02\x12\x14\n\x0ctext_actions\x18\x02 \x01(\t\x12\x10\n\x08memories\x18\x03 \x03(\x02\x12\r\n\x05value\x18\x04 \x01(\x02\x12\x39\n\rcustom_action\x18\x05 \x01(\x0b\x32".communicator_objects.CustomActionB\x1f\xaa\x02\x1cMLAgents.CommunicatorObjectsb\x06proto3' |
|||
), |
|||
dependencies=[ |
|||
mlagents_dot_envs_dot_communicator__objects_dot_custom__action__pb2.DESCRIPTOR |
|||
], |
|||
) |
|||
name='mlagents/envs/communicator_objects/agent_action_proto.proto', |
|||
package='communicator_objects', |
|||
syntax='proto3', |
|||
serialized_pb=_b('\n;mlagents/envs/communicator_objects/agent_action_proto.proto\x12\x14\x63ommunicator_objects\x1a\x36mlagents/envs/communicator_objects/custom_action.proto\"\x9c\x01\n\x10\x41gentActionProto\x12\x16\n\x0evector_actions\x18\x01 \x03(\x02\x12\x14\n\x0ctext_actions\x18\x02 \x01(\t\x12\x10\n\x08memories\x18\x03 \x03(\x02\x12\r\n\x05value\x18\x04 \x01(\x02\x12\x39\n\rcustom_action\x18\x05 \x01(\x0b\x32\".communicator_objects.CustomActionB\x1f\xaa\x02\x1cMLAgents.CommunicatorObjectsb\x06proto3') |
|||
, |
|||
dependencies=[mlagents_dot_envs_dot_communicator__objects_dot_custom__action__pb2.DESCRIPTOR,]) |
|||
|
|||
|
|||
name="AgentActionProto", |
|||
full_name="communicator_objects.AgentActionProto", |
|||
filename=None, |
|||
file=DESCRIPTOR, |
|||
containing_type=None, |
|||
fields=[ |
|||
_descriptor.FieldDescriptor( |
|||
name="vector_actions", |
|||
full_name="communicator_objects.AgentActionProto.vector_actions", |
|||
index=0, |
|||
number=1, |
|||
type=2, |
|||
cpp_type=6, |
|||
label=3, |
|||
has_default_value=False, |
|||
default_value=[], |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="text_actions", |
|||
full_name="communicator_objects.AgentActionProto.text_actions", |
|||
index=1, |
|||
number=2, |
|||
type=9, |
|||
cpp_type=9, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=_b("").decode("utf-8"), |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="memories", |
|||
full_name="communicator_objects.AgentActionProto.memories", |
|||
index=2, |
|||
number=3, |
|||
type=2, |
|||
cpp_type=6, |
|||
label=3, |
|||
has_default_value=False, |
|||
default_value=[], |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="value", |
|||
full_name="communicator_objects.AgentActionProto.value", |
|||
index=3, |
|||
number=4, |
|||
type=2, |
|||
cpp_type=6, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=float(0), |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="custom_action", |
|||
full_name="communicator_objects.AgentActionProto.custom_action", |
|||
index=4, |
|||
number=5, |
|||
type=11, |
|||
cpp_type=10, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=None, |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
], |
|||
extensions=[], |
|||
nested_types=[], |
|||
enum_types=[], |
|||
serialized_options=None, |
|||
is_extendable=False, |
|||
syntax="proto3", |
|||
extension_ranges=[], |
|||
oneofs=[], |
|||
serialized_start=142, |
|||
serialized_end=298, |
|||
name='AgentActionProto', |
|||
full_name='communicator_objects.AgentActionProto', |
|||
filename=None, |
|||
file=DESCRIPTOR, |
|||
containing_type=None, |
|||
fields=[ |
|||
_descriptor.FieldDescriptor( |
|||
name='vector_actions', full_name='communicator_objects.AgentActionProto.vector_actions', index=0, |
|||
number=1, type=2, cpp_type=6, label=3, |
|||
has_default_value=False, default_value=[], |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='text_actions', full_name='communicator_objects.AgentActionProto.text_actions', index=1, |
|||
number=2, type=9, cpp_type=9, label=1, |
|||
has_default_value=False, default_value=_b("").decode('utf-8'), |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='memories', full_name='communicator_objects.AgentActionProto.memories', index=2, |
|||
number=3, type=2, cpp_type=6, label=3, |
|||
has_default_value=False, default_value=[], |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='value', full_name='communicator_objects.AgentActionProto.value', index=3, |
|||
number=4, type=2, cpp_type=6, label=1, |
|||
has_default_value=False, default_value=float(0), |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='custom_action', full_name='communicator_objects.AgentActionProto.custom_action', index=4, |
|||
number=5, type=11, cpp_type=10, label=1, |
|||
has_default_value=False, default_value=None, |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
], |
|||
extensions=[ |
|||
], |
|||
nested_types=[], |
|||
enum_types=[ |
|||
], |
|||
options=None, |
|||
is_extendable=False, |
|||
syntax='proto3', |
|||
extension_ranges=[], |
|||
oneofs=[ |
|||
], |
|||
serialized_start=142, |
|||
serialized_end=298, |
|||
_AGENTACTIONPROTO.fields_by_name[ |
|||
"custom_action" |
|||
].message_type = ( |
|||
mlagents_dot_envs_dot_communicator__objects_dot_custom__action__pb2._CUSTOMACTION |
|||
) |
|||
DESCRIPTOR.message_types_by_name["AgentActionProto"] = _AGENTACTIONPROTO |
|||
_AGENTACTIONPROTO.fields_by_name['custom_action'].message_type = mlagents_dot_envs_dot_communicator__objects_dot_custom__action__pb2._CUSTOMACTION |
|||
DESCRIPTOR.message_types_by_name['AgentActionProto'] = _AGENTACTIONPROTO |
|||
AgentActionProto = _reflection.GeneratedProtocolMessageType( |
|||
"AgentActionProto", |
|||
(_message.Message,), |
|||
dict( |
|||
DESCRIPTOR=_AGENTACTIONPROTO, |
|||
__module__="mlagents.envs.communicator_objects.agent_action_proto_pb2" |
|||
# @@protoc_insertion_point(class_scope:communicator_objects.AgentActionProto) |
|||
), |
|||
) |
|||
AgentActionProto = _reflection.GeneratedProtocolMessageType('AgentActionProto', (_message.Message,), dict( |
|||
DESCRIPTOR = _AGENTACTIONPROTO, |
|||
__module__ = 'mlagents.envs.communicator_objects.agent_action_proto_pb2' |
|||
# @@protoc_insertion_point(class_scope:communicator_objects.AgentActionProto) |
|||
)) |
|||
DESCRIPTOR._options = None |
|||
DESCRIPTOR.has_options = True |
|||
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\252\002\034MLAgents.CommunicatorObjects')) |
|||
# @@protoc_insertion_point(module_scope) |
|
|||
# -*- coding: utf-8 -*- |
|||
|
|||
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) |
|||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) |
|||
|
|||
from google.protobuf import descriptor_pb2 |
|||
from mlagents.envs.communicator_objects import ( |
|||
custom_observation_pb2 as mlagents_dot_envs_dot_communicator__objects_dot_custom__observation__pb2, |
|||
) |
|||
from mlagents.envs.communicator_objects import custom_observation_pb2 as mlagents_dot_envs_dot_communicator__objects_dot_custom__observation__pb2 |
|||
name="mlagents/envs/communicator_objects/agent_info_proto.proto", |
|||
package="communicator_objects", |
|||
syntax="proto3", |
|||
serialized_options=_b("\252\002\034MLAgents.CommunicatorObjects"), |
|||
serialized_pb=_b( |
|||
'\n9mlagents/envs/communicator_objects/agent_info_proto.proto\x12\x14\x63ommunicator_objects\x1a;mlagents/envs/communicator_objects/custom_observation.proto"\xd7\x02\n\x0e\x41gentInfoProto\x12"\n\x1astacked_vector_observation\x18\x01 \x03(\x02\x12\x1b\n\x13visual_observations\x18\x02 \x03(\x0c\x12\x18\n\x10text_observation\x18\x03 \x01(\t\x12\x1d\n\x15stored_vector_actions\x18\x04 \x03(\x02\x12\x1b\n\x13stored_text_actions\x18\x05 \x01(\t\x12\x10\n\x08memories\x18\x06 \x03(\x02\x12\x0e\n\x06reward\x18\x07 \x01(\x02\x12\x0c\n\x04\x64one\x18\x08 \x01(\x08\x12\x18\n\x10max_step_reached\x18\t \x01(\x08\x12\n\n\x02id\x18\n \x01(\x05\x12\x13\n\x0b\x61\x63tion_mask\x18\x0b \x03(\x08\x12\x43\n\x12\x63ustom_observation\x18\x0c \x01(\x0b\x32\'.communicator_objects.CustomObservationB\x1f\xaa\x02\x1cMLAgents.CommunicatorObjectsb\x06proto3' |
|||
), |
|||
dependencies=[ |
|||
mlagents_dot_envs_dot_communicator__objects_dot_custom__observation__pb2.DESCRIPTOR |
|||
], |
|||
) |
|||
name='mlagents/envs/communicator_objects/agent_info_proto.proto', |
|||
package='communicator_objects', |
|||
syntax='proto3', |
|||
serialized_pb=_b('\n9mlagents/envs/communicator_objects/agent_info_proto.proto\x12\x14\x63ommunicator_objects\x1a;mlagents/envs/communicator_objects/custom_observation.proto\"\xd7\x02\n\x0e\x41gentInfoProto\x12\"\n\x1astacked_vector_observation\x18\x01 \x03(\x02\x12\x1b\n\x13visual_observations\x18\x02 \x03(\x0c\x12\x18\n\x10text_observation\x18\x03 \x01(\t\x12\x1d\n\x15stored_vector_actions\x18\x04 \x03(\x02\x12\x1b\n\x13stored_text_actions\x18\x05 \x01(\t\x12\x10\n\x08memories\x18\x06 \x03(\x02\x12\x0e\n\x06reward\x18\x07 \x01(\x02\x12\x0c\n\x04\x64one\x18\x08 \x01(\x08\x12\x18\n\x10max_step_reached\x18\t \x01(\x08\x12\n\n\x02id\x18\n \x01(\x05\x12\x13\n\x0b\x61\x63tion_mask\x18\x0b \x03(\x08\x12\x43\n\x12\x63ustom_observation\x18\x0c \x01(\x0b\x32\'.communicator_objects.CustomObservationB\x1f\xaa\x02\x1cMLAgents.CommunicatorObjectsb\x06proto3') |
|||
, |
|||
dependencies=[mlagents_dot_envs_dot_communicator__objects_dot_custom__observation__pb2.DESCRIPTOR,]) |
|||
|
|||
|
|||
name="AgentInfoProto", |
|||
full_name="communicator_objects.AgentInfoProto", |
|||
filename=None, |
|||
file=DESCRIPTOR, |
|||
containing_type=None, |
|||
fields=[ |
|||
_descriptor.FieldDescriptor( |
|||
name="stacked_vector_observation", |
|||
full_name="communicator_objects.AgentInfoProto.stacked_vector_observation", |
|||
index=0, |
|||
number=1, |
|||
type=2, |
|||
cpp_type=6, |
|||
label=3, |
|||
has_default_value=False, |
|||
default_value=[], |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="visual_observations", |
|||
full_name="communicator_objects.AgentInfoProto.visual_observations", |
|||
index=1, |
|||
number=2, |
|||
type=12, |
|||
cpp_type=9, |
|||
label=3, |
|||
has_default_value=False, |
|||
default_value=[], |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="text_observation", |
|||
full_name="communicator_objects.AgentInfoProto.text_observation", |
|||
index=2, |
|||
number=3, |
|||
type=9, |
|||
cpp_type=9, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=_b("").decode("utf-8"), |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="stored_vector_actions", |
|||
full_name="communicator_objects.AgentInfoProto.stored_vector_actions", |
|||
index=3, |
|||
number=4, |
|||
type=2, |
|||
cpp_type=6, |
|||
label=3, |
|||
has_default_value=False, |
|||
default_value=[], |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="stored_text_actions", |
|||
full_name="communicator_objects.AgentInfoProto.stored_text_actions", |
|||
index=4, |
|||
number=5, |
|||
type=9, |
|||
cpp_type=9, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=_b("").decode("utf-8"), |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="memories", |
|||
full_name="communicator_objects.AgentInfoProto.memories", |
|||
index=5, |
|||
number=6, |
|||
type=2, |
|||
cpp_type=6, |
|||
label=3, |
|||
has_default_value=False, |
|||
default_value=[], |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="reward", |
|||
full_name="communicator_objects.AgentInfoProto.reward", |
|||
index=6, |
|||
number=7, |
|||
type=2, |
|||
cpp_type=6, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=float(0), |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="done", |
|||
full_name="communicator_objects.AgentInfoProto.done", |
|||
index=7, |
|||
number=8, |
|||
type=8, |
|||
cpp_type=7, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=False, |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="max_step_reached", |
|||
full_name="communicator_objects.AgentInfoProto.max_step_reached", |
|||
index=8, |
|||
number=9, |
|||
type=8, |
|||
cpp_type=7, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=False, |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="id", |
|||
full_name="communicator_objects.AgentInfoProto.id", |
|||
index=9, |
|||
number=10, |
|||
type=5, |
|||
cpp_type=1, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=0, |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="action_mask", |
|||
full_name="communicator_objects.AgentInfoProto.action_mask", |
|||
index=10, |
|||
number=11, |
|||
type=8, |
|||
cpp_type=7, |
|||
label=3, |
|||
has_default_value=False, |
|||
default_value=[], |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="custom_observation", |
|||
full_name="communicator_objects.AgentInfoProto.custom_observation", |
|||
index=11, |
|||
number=12, |
|||
type=11, |
|||
cpp_type=10, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=None, |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
], |
|||
extensions=[], |
|||
nested_types=[], |
|||
enum_types=[], |
|||
serialized_options=None, |
|||
is_extendable=False, |
|||
syntax="proto3", |
|||
extension_ranges=[], |
|||
oneofs=[], |
|||
serialized_start=145, |
|||
serialized_end=488, |
|||
name='AgentInfoProto', |
|||
full_name='communicator_objects.AgentInfoProto', |
|||
filename=None, |
|||
file=DESCRIPTOR, |
|||
containing_type=None, |
|||
fields=[ |
|||
_descriptor.FieldDescriptor( |
|||
name='stacked_vector_observation', full_name='communicator_objects.AgentInfoProto.stacked_vector_observation', index=0, |
|||
number=1, type=2, cpp_type=6, label=3, |
|||
has_default_value=False, default_value=[], |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='visual_observations', full_name='communicator_objects.AgentInfoProto.visual_observations', index=1, |
|||
number=2, type=12, cpp_type=9, label=3, |
|||
has_default_value=False, default_value=[], |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='text_observation', full_name='communicator_objects.AgentInfoProto.text_observation', index=2, |
|||
number=3, type=9, cpp_type=9, label=1, |
|||
has_default_value=False, default_value=_b("").decode('utf-8'), |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='stored_vector_actions', full_name='communicator_objects.AgentInfoProto.stored_vector_actions', index=3, |
|||
number=4, type=2, cpp_type=6, label=3, |
|||
has_default_value=False, default_value=[], |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='stored_text_actions', full_name='communicator_objects.AgentInfoProto.stored_text_actions', index=4, |
|||
number=5, type=9, cpp_type=9, label=1, |
|||
has_default_value=False, default_value=_b("").decode('utf-8'), |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='memories', full_name='communicator_objects.AgentInfoProto.memories', index=5, |
|||
number=6, type=2, cpp_type=6, label=3, |
|||
has_default_value=False, default_value=[], |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='reward', full_name='communicator_objects.AgentInfoProto.reward', index=6, |
|||
number=7, type=2, cpp_type=6, label=1, |
|||
has_default_value=False, default_value=float(0), |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='done', full_name='communicator_objects.AgentInfoProto.done', index=7, |
|||
number=8, type=8, cpp_type=7, label=1, |
|||
has_default_value=False, default_value=False, |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='max_step_reached', full_name='communicator_objects.AgentInfoProto.max_step_reached', index=8, |
|||
number=9, type=8, cpp_type=7, label=1, |
|||
has_default_value=False, default_value=False, |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='id', full_name='communicator_objects.AgentInfoProto.id', index=9, |
|||
number=10, type=5, cpp_type=1, label=1, |
|||
has_default_value=False, default_value=0, |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='action_mask', full_name='communicator_objects.AgentInfoProto.action_mask', index=10, |
|||
number=11, type=8, cpp_type=7, label=3, |
|||
has_default_value=False, default_value=[], |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='custom_observation', full_name='communicator_objects.AgentInfoProto.custom_observation', index=11, |
|||
number=12, type=11, cpp_type=10, label=1, |
|||
has_default_value=False, default_value=None, |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
], |
|||
extensions=[ |
|||
], |
|||
nested_types=[], |
|||
enum_types=[ |
|||
], |
|||
options=None, |
|||
is_extendable=False, |
|||
syntax='proto3', |
|||
extension_ranges=[], |
|||
oneofs=[ |
|||
], |
|||
serialized_start=145, |
|||
serialized_end=488, |
|||
_AGENTINFOPROTO.fields_by_name[ |
|||
"custom_observation" |
|||
].message_type = ( |
|||
mlagents_dot_envs_dot_communicator__objects_dot_custom__observation__pb2._CUSTOMOBSERVATION |
|||
) |
|||
DESCRIPTOR.message_types_by_name["AgentInfoProto"] = _AGENTINFOPROTO |
|||
_AGENTINFOPROTO.fields_by_name['custom_observation'].message_type = mlagents_dot_envs_dot_communicator__objects_dot_custom__observation__pb2._CUSTOMOBSERVATION |
|||
DESCRIPTOR.message_types_by_name['AgentInfoProto'] = _AGENTINFOPROTO |
|||
AgentInfoProto = _reflection.GeneratedProtocolMessageType( |
|||
"AgentInfoProto", |
|||
(_message.Message,), |
|||
dict( |
|||
DESCRIPTOR=_AGENTINFOPROTO, |
|||
__module__="mlagents.envs.communicator_objects.agent_info_proto_pb2" |
|||
# @@protoc_insertion_point(class_scope:communicator_objects.AgentInfoProto) |
|||
), |
|||
) |
|||
AgentInfoProto = _reflection.GeneratedProtocolMessageType('AgentInfoProto', (_message.Message,), dict( |
|||
DESCRIPTOR = _AGENTINFOPROTO, |
|||
__module__ = 'mlagents.envs.communicator_objects.agent_info_proto_pb2' |
|||
# @@protoc_insertion_point(class_scope:communicator_objects.AgentInfoProto) |
|||
)) |
|||
DESCRIPTOR._options = None |
|||
DESCRIPTOR.has_options = True |
|||
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\252\002\034MLAgents.CommunicatorObjects')) |
|||
# @@protoc_insertion_point(module_scope) |
|
|||
# -*- coding: utf-8 -*- |
|||
|
|||
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) |
|||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) |
|||
|
|||
from google.protobuf import descriptor_pb2 |
|||
from mlagents.envs.communicator_objects import ( |
|||
resolution_proto_pb2 as mlagents_dot_envs_dot_communicator__objects_dot_resolution__proto__pb2, |
|||
) |
|||
from mlagents.envs.communicator_objects import ( |
|||
space_type_proto_pb2 as mlagents_dot_envs_dot_communicator__objects_dot_space__type__proto__pb2, |
|||
) |
|||
from mlagents.envs.communicator_objects import resolution_proto_pb2 as mlagents_dot_envs_dot_communicator__objects_dot_resolution__proto__pb2 |
|||
from mlagents.envs.communicator_objects import space_type_proto_pb2 as mlagents_dot_envs_dot_communicator__objects_dot_space__type__proto__pb2 |
|||
name="mlagents/envs/communicator_objects/brain_parameters_proto.proto", |
|||
package="communicator_objects", |
|||
syntax="proto3", |
|||
serialized_options=_b("\252\002\034MLAgents.CommunicatorObjects"), |
|||
serialized_pb=_b( |
|||
'\n?mlagents/envs/communicator_objects/brain_parameters_proto.proto\x12\x14\x63ommunicator_objects\x1a\x39mlagents/envs/communicator_objects/resolution_proto.proto\x1a\x39mlagents/envs/communicator_objects/space_type_proto.proto"\xd4\x02\n\x14\x42rainParametersProto\x12\x1f\n\x17vector_observation_size\x18\x01 \x01(\x05\x12\'\n\x1fnum_stacked_vector_observations\x18\x02 \x01(\x05\x12\x1a\n\x12vector_action_size\x18\x03 \x03(\x05\x12\x41\n\x12\x63\x61mera_resolutions\x18\x04 \x03(\x0b\x32%.communicator_objects.ResolutionProto\x12"\n\x1avector_action_descriptions\x18\x05 \x03(\t\x12\x46\n\x18vector_action_space_type\x18\x06 \x01(\x0e\x32$.communicator_objects.SpaceTypeProto\x12\x12\n\nbrain_name\x18\x07 \x01(\t\x12\x13\n\x0bis_training\x18\x08 \x01(\x08\x42\x1f\xaa\x02\x1cMLAgents.CommunicatorObjectsb\x06proto3' |
|||
), |
|||
dependencies=[ |
|||
mlagents_dot_envs_dot_communicator__objects_dot_resolution__proto__pb2.DESCRIPTOR, |
|||
mlagents_dot_envs_dot_communicator__objects_dot_space__type__proto__pb2.DESCRIPTOR, |
|||
], |
|||
) |
|||
name='mlagents/envs/communicator_objects/brain_parameters_proto.proto', |
|||
package='communicator_objects', |
|||
syntax='proto3', |
|||
serialized_pb=_b('\n?mlagents/envs/communicator_objects/brain_parameters_proto.proto\x12\x14\x63ommunicator_objects\x1a\x39mlagents/envs/communicator_objects/resolution_proto.proto\x1a\x39mlagents/envs/communicator_objects/space_type_proto.proto\"\xd4\x02\n\x14\x42rainParametersProto\x12\x1f\n\x17vector_observation_size\x18\x01 \x01(\x05\x12\'\n\x1fnum_stacked_vector_observations\x18\x02 \x01(\x05\x12\x1a\n\x12vector_action_size\x18\x03 \x03(\x05\x12\x41\n\x12\x63\x61mera_resolutions\x18\x04 \x03(\x0b\x32%.communicator_objects.ResolutionProto\x12\"\n\x1avector_action_descriptions\x18\x05 \x03(\t\x12\x46\n\x18vector_action_space_type\x18\x06 \x01(\x0e\x32$.communicator_objects.SpaceTypeProto\x12\x12\n\nbrain_name\x18\x07 \x01(\t\x12\x13\n\x0bis_training\x18\x08 \x01(\x08\x42\x1f\xaa\x02\x1cMLAgents.CommunicatorObjectsb\x06proto3') |
|||
, |
|||
dependencies=[mlagents_dot_envs_dot_communicator__objects_dot_resolution__proto__pb2.DESCRIPTOR,mlagents_dot_envs_dot_communicator__objects_dot_space__type__proto__pb2.DESCRIPTOR,]) |
|||
|
|||
|
|||
name="BrainParametersProto", |
|||
full_name="communicator_objects.BrainParametersProto", |
|||
filename=None, |
|||
file=DESCRIPTOR, |
|||
containing_type=None, |
|||
fields=[ |
|||
_descriptor.FieldDescriptor( |
|||
name="vector_observation_size", |
|||
full_name="communicator_objects.BrainParametersProto.vector_observation_size", |
|||
index=0, |
|||
number=1, |
|||
type=5, |
|||
cpp_type=1, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=0, |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="num_stacked_vector_observations", |
|||
full_name="communicator_objects.BrainParametersProto.num_stacked_vector_observations", |
|||
index=1, |
|||
number=2, |
|||
type=5, |
|||
cpp_type=1, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=0, |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="vector_action_size", |
|||
full_name="communicator_objects.BrainParametersProto.vector_action_size", |
|||
index=2, |
|||
number=3, |
|||
type=5, |
|||
cpp_type=1, |
|||
label=3, |
|||
has_default_value=False, |
|||
default_value=[], |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="camera_resolutions", |
|||
full_name="communicator_objects.BrainParametersProto.camera_resolutions", |
|||
index=3, |
|||
number=4, |
|||
type=11, |
|||
cpp_type=10, |
|||
label=3, |
|||
has_default_value=False, |
|||
default_value=[], |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="vector_action_descriptions", |
|||
full_name="communicator_objects.BrainParametersProto.vector_action_descriptions", |
|||
index=4, |
|||
number=5, |
|||
type=9, |
|||
cpp_type=9, |
|||
label=3, |
|||
has_default_value=False, |
|||
default_value=[], |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="vector_action_space_type", |
|||
full_name="communicator_objects.BrainParametersProto.vector_action_space_type", |
|||
index=5, |
|||
number=6, |
|||
type=14, |
|||
cpp_type=8, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=0, |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="brain_name", |
|||
full_name="communicator_objects.BrainParametersProto.brain_name", |
|||
index=6, |
|||
number=7, |
|||
type=9, |
|||
cpp_type=9, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=_b("").decode("utf-8"), |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
_descriptor.FieldDescriptor( |
|||
name="is_training", |
|||
full_name="communicator_objects.BrainParametersProto.is_training", |
|||
index=7, |
|||
number=8, |
|||
type=8, |
|||
cpp_type=7, |
|||
label=1, |
|||
has_default_value=False, |
|||
default_value=False, |
|||
message_type=None, |
|||
enum_type=None, |
|||
containing_type=None, |
|||
is_extension=False, |
|||
extension_scope=None, |
|||
serialized_options=None, |
|||
file=DESCRIPTOR, |
|||
), |
|||
], |
|||
extensions=[], |
|||
nested_types=[], |
|||
enum_types=[], |
|||
serialized_options=None, |
|||
is_extendable=False, |
|||
syntax="proto3", |
|||
extension_ranges=[], |
|||
oneofs=[], |
|||
serialized_start=208, |
|||
serialized_end=548, |
|||
name='BrainParametersProto', |
|||
full_name='communicator_objects.BrainParametersProto', |
|||
filename=None, |
|||
file=DESCRIPTOR, |
|||
containing_type=None, |
|||
fields=[ |
|||
_descriptor.FieldDescriptor( |
|||
name='vector_observation_size', full_name='communicator_objects.BrainParametersProto.vector_observation_size', index=0, |
|||
number=1, type=5, cpp_type=1, label=1, |
|||
has_default_value=False, default_value=0, |
|||
message_type=None, enum_type=None, containing_type=None, |
|||
is_extension=False, extension_scope=None, |
|||
options=None, file=DESCRIPTOR), |
|||
_descriptor.FieldDescriptor( |
|||
name='num_stacked_vector_observations', full_name='communicator_objects.BrainParametersProto.num_stacked_vector_observations', index=1, |
|||
number=2, type=5, cpp_type=1, label=1, |
|||
has_default_value=False, default_value=0, |
|||
message_type=None, enum_type=None, containing_type=None, |
|||