Unverified Commit 31971f1b authored by Juon Kawakami's avatar Juon Kawakami 🥗
Browse files

init

parent 342fea6f
{"Entity":{"AMBULANCE_TEAM":4365,"FIRE_STATION":4360,"GAS_STATION":4359,"ROAD":4354,"AMBULANCE_CENTRE":4361,"POLICE_FORCE":4366,"FIRE_BRIGADE":4364,"HYDRANT":4358,"POLICE_OFFICE":4362,"BUILDING":4356,"REFUGE":4357,"BLOCKADE":4355,"WORLD":4353,"CIVILIAN":4363},"ComponentControlMSG":{"INTENSITIES":529,"Changes":534,"RequestID":513,"NumberOfIDs":520,"ViewerID":524,"TIMES":530,"Time":526,"Reason":522,"Name":516,"SimulatorID":518,"Entities":523,"RequestNumber":519,"AgentConfig":525,"Hearing":528,"SimulatorConfig":533,"Version":515,"Updates":527,"RequestedEntityTypes":517,"Commands":532,"NewEntityIDs":521,"AgentID":514,"ID":531},"Command":{"AK_RESCUE":4872,"AK_CLEAR_AREA":4874,"AK_SUBSCRIBE":4875,"AK_TELL":4870,"AK_LOAD":4867,"AK_UNLOAD":4868,"AK_CLEAR":4873,"AK_REST":4865,"AK_MOVE":4866,"AK_EXTINGUISH":4871,"AK_SAY":4869,"AK_SPEAK":4876},"ControlMSG":{"GK_CONNECT_OK":259,"KS_AFTERSHOCKS_INFO":268,"AK_ACKNOWLEDGE":275,"SK_CONNECT":261,"KS_CONNECT_ERROR":265,"VK_CONNECT":269,"KS_COMMANDS":267,"KS_UPDATE":266,"KV_CONNECT_OK":271,"KG_ACKNOWLEDGE":258,"SHUTDOWN":279,"KV_TIMESTEP":273,"KA_SENSE":278,"KS_CONNECT_OK":264,"VK_ACKNOWLEDGE":270,"KG_CONNECT":257,"GK_CONNECT_ERROR":260,"KA_CONNECT_ERROR":277,"SK_ACKNOWLEDGE":262,"KA_CONNECT_OK":276,"AK_CONNECT":274,"ENTITY_ID_RESPONSE":281,"ENTITY_ID_REQUEST":280,"KV_CONNECT_ERROR":272,"SK_UPDATE":263},"ComponentCommand":{"Water":5124,"Path":5125,"Target":5121,"Message":5126,"DestinationY":5123,"DestinationX":5122,"Channel":5127,"Channels":5128},"Property":{"START_TIME":4609,"LONGITUDE":4610,"HP":4632,"BUILDING_ATTRIBUTES":4619,"BUILDING_CODE":4623,"WIND_FORCE":4612,"BURIEDNESS":4634,"TRAVEL_DISTANCE":4635,"POSITION":4628,"BROKENNESS":4622,"TEMPERATURE":4637,"BUILDING_AREA_TOTAL":4625,"X":4614,"Y":4615,"EDGES":4627,"WAITING_LIST_SIZE":4643,"REFILL_CAPACITY":4642,"BUILDING_AREA_GROUND":4624,"WATER_QUANTITY":4636,"BLOCKADES":4616,"FLOORS":4618,"CAPACITY":4639,"APEXES":4626,"DIRECTION":4629,"OCCUPIED_BEDS":4641,"IMPORTANCE":4638,"BED_CAPACITY":4640,"POSITION_HISTORY":4630,"DAMAGE":4633,"FIERYNESS":4621,"REPAIR_COST":4617,"IGNITION":4620,"STAMINA":4631,"LATITUDE":4611,"WIND_DIRECTION":4613}}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
//AutoGenerated by 'rcrs-server/scripts/platforms/compile.sh'
//Please do not modify it
const URN={
Entity: {
WORLD:0x1101,
ROAD:0x1102,
BLOCKADE:0x1103,
BUILDING:0x1104,
REFUGE:0x1105,
HYDRANT:0x1106,
GAS_STATION:0x1107,
FIRE_STATION:0x1108,
AMBULANCE_CENTRE:0x1109,
POLICE_OFFICE:0x110a,
CIVILIAN:0x110b,
FIRE_BRIGADE:0x110c,
AMBULANCE_TEAM:0x110d,
POLICE_FORCE:0x110e,
},
Property:{
START_TIME:0x1201,
LONGITUDE:0x1202,
LATITUDE:0x1203,
WIND_FORCE:0x1204,
WIND_DIRECTION:0x1205,
X:0x1206,
Y:0x1207,
BLOCKADES:0x1208,
REPAIR_COST:0x1209,
FLOORS:0x120a,
BUILDING_ATTRIBUTES:0x120b,
IGNITION:0x120c,
FIERYNESS:0x120d,
BROKENNESS:0x120e,
BUILDING_CODE:0x120f,
BUILDING_AREA_GROUND:0x1210,
BUILDING_AREA_TOTAL:0x1211,
APEXES:0x1212,
EDGES:0x1213,
POSITION:0x1214,
DIRECTION:0x1215,
POSITION_HISTORY:0x1216,
STAMINA:0x1217,
HP:0x1218,
DAMAGE:0x1219,
BURIEDNESS:0x121a,
TRAVEL_DISTANCE:0x121b,
WATER_QUANTITY:0x121c,
TEMPERATURE:0x121d,
IMPORTANCE:0x121e,
CAPACITY:0x121f,
BED_CAPACITY:0x1220,
OCCUPIED_BEDS:0x1221,
REFILL_CAPACITY:0x1222,
WAITING_LIST_SIZE:0x1223,
},
Command:{
AK_REST:0x1301,
AK_MOVE:0x1302,
AK_LOAD:0x1303,
AK_UNLOAD:0x1304,
AK_SAY:0x1305,
AK_TELL:0x1306,
AK_EXTINGUISH:0x1307,
AK_RESCUE:0x1308,
AK_CLEAR:0x1309,
AK_CLEAR_AREA:0x130a,
AK_SUBSCRIBE:0x130b,
AK_SPEAK:0x130c,
},
ComponentCommand:{
Target:0x1401,
DestinationX:0x1402,
DestinationY:0x1403,
Water:0x1404,
Path:0x1405,
Message:0x1406,
Channel:0x1407,
Channels:0x1408,
},
ControlMSG:{
KG_CONNECT:0x0101,
KG_ACKNOWLEDGE:0x0102,
GK_CONNECT_OK:0x0103,
GK_CONNECT_ERROR:0x0104,
SK_CONNECT:0x0105,
SK_ACKNOWLEDGE:0x0106,
SK_UPDATE:0x0107,
KS_CONNECT_OK:0x0108,
KS_CONNECT_ERROR:0x0109,
KS_UPDATE:0x010a,
KS_COMMANDS:0x010b,
KS_AFTERSHOCKS_INFO:0x010c,
VK_CONNECT:0x010d,
VK_ACKNOWLEDGE:0x010e,
KV_CONNECT_OK:0x010f,
KV_CONNECT_ERROR:0x0110,
KV_TIMESTEP:0x0111,
AK_CONNECT:0x0112,
AK_ACKNOWLEDGE:0x0113,
KA_CONNECT_OK:0x0114,
KA_CONNECT_ERROR:0x0115,
KA_SENSE:0x0116,
SHUTDOWN:0x0117,
ENTITY_ID_REQUEST:0x0118,
ENTITY_ID_RESPONSE:0x0119,
},
ComponentControlMSG:{
RequestID:0x0201,
AgentID:0x0202,
Version:0x0203,
Name:0x0204,
RequestedEntityTypes:0x0205,
SimulatorID:0x0206,
RequestNumber:0x0207,
NumberOfIDs:0x0208,
NewEntityIDs:0x0209,
Reason:0x020a,
Entities:0x020b,
ViewerID:0x020c,
AgentConfig:0x020d,
Time:0x020e,
Updates:0x020f,
Hearing:0x0210,
INTENSITIES:0x0211,
TIMES:0x0212,
ID:0x0213,
Commands:0x0214,
SimulatorConfig:0x0215,
Changes:0x0216,
}
}
URN.MAP=Object.assign({},...Object.keys(URN.Entity).map(p=>({[URN.Entity[p]]:p})),...Object.keys(URN.Property).map(p=>({[URN.Property[p]]:p})),...Object.keys(URN.Command).map(p=>({[URN.Command[p]]:p})),...Object.keys(URN.ComponentCommand).map(p=>({[URN.ComponentCommand[p]]:p})),...Object.keys(URN.ControlMSG).map(p=>({[URN.ControlMSG[p]]:p})),...Object.keys(URN.ComponentControlMSG).map(p=>({[URN.ComponentControlMSG[p]]:p})))
\ No newline at end of file
{
"dependencies": {
"browserify": "^17.0.0",
"google-protobuf": "^3.19.1"
}
}
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: RCRSLogProto.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
import RCRSProto_pb2 as RCRSProto__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='RCRSLogProto.proto',
package='',
syntax='proto3',
serialized_options=b'\n\035rescuecore2.messages.protobufB\014RCRSLogProto',
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x12RCRSLogProto.proto\x1a\x0fRCRSProto.proto\"\x9e\x02\n\x08LogProto\x12\x1f\n\x05start\x18\x01 \x01(\x0b\x32\x0e.StartLogProtoH\x00\x12\x36\n\x10initialCondition\x18\x02 \x01(\x0b\x32\x1a.InitialConditionsLogProtoH\x00\x12#\n\x07\x63ommand\x18\x03 \x01(\x0b\x32\x10.CommandLogProtoH\x00\x12)\n\nperception\x18\x04 \x01(\x0b\x32\x13.PerceptionLogProtoH\x00\x12!\n\x06\x63onfig\x18\x05 \x01(\x0b\x32\x0f.ConfigLogProtoH\x00\x12\"\n\x06update\x18\x06 \x01(\x0b\x32\x10.UpdatesLogProtoH\x00\x12\x1b\n\x03\x65nd\x18\x07 \x01(\x0b\x32\x0c.EndLogProtoH\x00\x42\x05\n\x03log\"\x0f\n\rStartLogProto\";\n\x19InitialConditionsLogProto\x12\x1e\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x0c.EntityProto\"@\n\x0f\x43ommandLogProto\x12\x0c\n\x04time\x18\x01 \x01(\x05\x12\x1f\n\x08\x63ommands\x18\x02 \x03(\x0b\x32\r.MessageProto\"}\n\x12PerceptionLogProto\x12\x0c\n\x04time\x18\x01 \x01(\x05\x12\x10\n\x08\x65ntityID\x18\x02 \x01(\x05\x12 \n\x07visible\x18\x03 \x01(\x0b\x32\x0f.ChangeSetProto\x12%\n\x0e\x63ommunications\x18\x04 \x03(\x0b\x32\r.MessageProto\".\n\x0e\x43onfigLogProto\x12\x1c\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x0c.ConfigProto\"A\n\x0fUpdatesLogProto\x12\x0c\n\x04time\x18\x01 \x01(\x05\x12 \n\x07\x63hanges\x18\x02 \x01(\x0b\x32\x0f.ChangeSetProto\"\r\n\x0b\x45ndLogProtoB-\n\x1drescuecore2.messages.protobufB\x0cRCRSLogProtob\x06proto3'
,
dependencies=[RCRSProto__pb2.DESCRIPTOR,])
_LOGPROTO = _descriptor.Descriptor(
name='LogProto',
full_name='LogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='start', full_name='LogProto.start', index=0,
number=1, 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, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='initialCondition', full_name='LogProto.initialCondition', index=1,
number=2, 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, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='command', full_name='LogProto.command', index=2,
number=3, 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, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='perception', full_name='LogProto.perception', index=3,
number=4, 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, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='config', full_name='LogProto.config', 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, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='update', full_name='LogProto.update', index=5,
number=6, 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, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='end', full_name='LogProto.end', index=6,
number=7, 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, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='log', full_name='LogProto.log',
index=0, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
],
serialized_start=40,
serialized_end=326,
)
_STARTLOGPROTO = _descriptor.Descriptor(
name='StartLogProto',
full_name='StartLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=328,
serialized_end=343,
)
_INITIALCONDITIONSLOGPROTO = _descriptor.Descriptor(
name='InitialConditionsLogProto',
full_name='InitialConditionsLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='entities', full_name='InitialConditionsLogProto.entities', index=0,
number=1, 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, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=345,
serialized_end=404,
)
_COMMANDLOGPROTO = _descriptor.Descriptor(
name='CommandLogProto',
full_name='CommandLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='time', full_name='CommandLogProto.time', 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, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='commands', full_name='CommandLogProto.commands', index=1,
number=2, 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, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=406,
serialized_end=470,
)
_PERCEPTIONLOGPROTO = _descriptor.Descriptor(
name='PerceptionLogProto',
full_name='PerceptionLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='time', full_name='PerceptionLogProto.time', 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, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='entityID', full_name='PerceptionLogProto.entityID', 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, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='visible', full_name='PerceptionLogProto.visible', index=2,
number=3, 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, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='communications', full_name='PerceptionLogProto.communications', 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, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=472,
serialized_end=597,
)
_CONFIGLOGPROTO = _descriptor.Descriptor(
name='ConfigLogProto',
full_name='ConfigLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='config', full_name='ConfigLogProto.config', index=0,
number=1, 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, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=599,
serialized_end=645,
)
_UPDATESLOGPROTO = _descriptor.Descriptor(
name='UpdatesLogProto',
full_name='UpdatesLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='time', full_name='UpdatesLogProto.time', 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, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='changes', full_name='UpdatesLogProto.changes', index=1,
number=2, 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, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=647,
serialized_end=712,
)
_ENDLOGPROTO = _descriptor.Descriptor(
name='EndLogProto',
full_name='EndLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=714,
serialized_end=727,
)
_LOGPROTO.fields_by_name['start'].message_type = _STARTLOGPROTO
_LOGPROTO.fields_by_name['initialCondition'].message_type = _INITIALCONDITIONSLOGPROTO
_LOGPROTO.fields_by_name['command'].message_type = _COMMANDLOGPROTO
_LOGPROTO.fields_by_name['perception'].message_type = _PERCEPTIONLOGPROTO
_LOGPROTO.fields_by_name['config'].message_type = _CONFIGLOGPROTO
_LOGPROTO.fields_by_name['update'].message_type = _UPDATESLOGPROTO
_LOGPROTO.fields_by_name['end'].message_type = _ENDLOGPROTO
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['start'])
_LOGPROTO.fields_by_name['start'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['initialCondition'])
_LOGPROTO.fields_by_name['initialCondition'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['command'])
_LOGPROTO.fields_by_name['command'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['perception'])
_LOGPROTO.fields_by_name['perception'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['config'])
_LOGPROTO.fields_by_name['config'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['update'])
_LOGPROTO.fields_by_name['update'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['end'])
_LOGPROTO.fields_by_name['end'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_INITIALCONDITIONSLOGPROTO.fields_by_name['entities'].message_type = RCRSProto__pb2._ENTITYPROTO
_COMMANDLOGPROTO.fields_by_name['commands'].message_type = RCRSProto__pb2._MESSAGEPROTO
_PERCEPTIONLOGPROTO.fields_by_name['visible'].message_type = RCRSProto__pb2._CHANGESETPROTO
_PERCEPTIONLOGPROTO.fields_by_name['communications'].message_type = RCRSProto__pb2._MESSAGEPROTO
_CONFIGLOGPROTO.fields_by_name['config'].message_type = RCRSProto__pb2._CONFIGPROTO
_UPDATESLOGPROTO.fields_by_name['changes'].message_type = RCRSProto__pb2._CHANGESETPROTO
DESCRIPTOR.message_types_by_name['LogProto'] = _LOGPROTO
DESCRIPTOR.message_types_by_name['StartLogProto'] = _STARTLOGPROTO
DESCRIPTOR.message_types_by_name['InitialConditionsLogProto'] = _INITIALCONDITIONSLOGPROTO
DESCRIPTOR.message_types_by_name['CommandLogProto'] = _COMMANDLOGPROTO
DESCRIPTOR.message_types_by_name['PerceptionLogProto'] = _PERCEPTIONLOGPROTO
DESCRIPTOR.message_types_by_name['ConfigLogProto'] = _CONFIGLOGPROTO
DESCRIPTOR.message_types_by_name['UpdatesLogProto'] = _UPDATESLOGPROTO
DESCRIPTOR.message_types_by_name['EndLogProto'] = _ENDLOGPROTO
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
LogProto = _reflection.GeneratedProtocolMessageType('LogProto', (_message.Message,), {
'DESCRIPTOR' : _LOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:LogProto)
})
_sym_db.RegisterMessage(LogProto)
StartLogProto = _reflection.GeneratedProtocolMessageType('StartLogProto', (_message.Message,), {
'DESCRIPTOR' : _STARTLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:StartLogProto)
})
_sym_db.RegisterMessage(StartLogProto)
InitialConditionsLogProto = _reflection.GeneratedProtocolMessageType('InitialConditionsLogProto', (_message.Message,), {
'DESCRIPTOR' : _INITIALCONDITIONSLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:InitialConditionsLogProto)
})
_sym_db.RegisterMessage(InitialConditionsLogProto)
CommandLogProto = _reflection.GeneratedProtocolMessageType('CommandLogProto', (_message.Message,), {
'DESCRIPTOR' : _COMMANDLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:CommandLogProto)
})
_sym_db.RegisterMessage(CommandLogProto)
PerceptionLogProto = _reflection.GeneratedProtocolMessageType('PerceptionLogProto', (_message.Message,), {
'DESCRIPTOR' : _PERCEPTIONLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:PerceptionLogProto)
})
_sym_db.RegisterMessage(PerceptionLogProto)
ConfigLogProto = _reflection.GeneratedProtocolMessageType('ConfigLogProto', (_message.Message,), {
'DESCRIPTOR' : _CONFIGLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:ConfigLogProto)
})
_sym_db.RegisterMessage(ConfigLogProto)
UpdatesLogProto = _reflection.GeneratedProtocolMessageType('UpdatesLogProto', (_message.Message,), {
'DESCRIPTOR' : _UPDATESLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:UpdatesLogProto)
})
_sym_db.RegisterMessage(UpdatesLogProto)
EndLogProto = _reflection.GeneratedProtocolMessageType('EndLogProto', (_message.Message,), {
'DESCRIPTOR' : _ENDLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:EndLogProto)
})
_sym_db.RegisterMessage(EndLogProto)
DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)
This diff is collapsed.
#AutoGenerated by 'rcrs-server/scripts/platforms/compile.sh'
#Please do not modify it
from enum import IntEnum
class Entity(IntEnum):
WORLD = 0x1101
ROAD = 0x1102
BLOCKADE = 0x1103
BUILDING = 0x1104
REFUGE = 0x1105
HYDRANT = 0x1106
GAS_STATION = 0x1107
FIRE_STATION = 0x1108
AMBULANCE_CENTRE = 0x1109
POLICE_OFFICE = 0x110a
CIVILIAN = 0x110b
FIRE_BRIGADE = 0x110c
AMBULANCE_TEAM = 0x110d
POLICE_FORCE = 0x110e
class Property(IntEnum):
START_TIME = 0x1201
LONGITUDE = 0x1202
LATITUDE = 0x1203
WIND_FORCE = 0x1204
WIND_DIRECTION = 0x1205
X = 0x1206
Y = 0x1207
BLOCKADES = 0x1208
REPAIR_COST = 0x1209
FLOORS = 0x120a
BUILDING_ATTRIBUTES = 0x120b
IGNITION = 0x120c
FIERYNESS = 0x120d
BROKENNESS = 0x120e
BUILDING_CODE = 0x120f
BUILDING_AREA_GROUND = 0x1210
BUILDING_AREA_TOTAL = 0x1211
APEXES = 0x1212
EDGES = 0x1213
POSITION = 0x1214
DIRECTION = 0x1215
POSITION_HISTORY = 0x1216
STAMINA = 0x1217
HP = 0x1218
DAMAGE = 0x1219
BURIEDNESS = 0x121a
TRAVEL_DISTANCE = 0x121b
WATER_QUANTITY = 0x121c
TEMPERATURE = 0x121d
IMPORTANCE = 0x121e
CAPACITY = 0x121f
BED_CAPACITY = 0x1220
OCCUPIED_BEDS = 0x1221
REFILL_CAPACITY = 0x1222
WAITING_LIST_SIZE = 0x1223
class Command(IntEnum):
AK_REST = 0x1301
AK_MOVE = 0x1302
AK_LOAD = 0x1303
AK_UNLOAD = 0x1304
AK_SAY = 0x1305
AK_TELL = 0x1306
AK_EXTINGUISH = 0x1307
AK_RESCUE = 0x1308
AK_CLEAR = 0x1309
AK_CLEAR_AREA = 0x130a
AK_SUBSCRIBE = 0x130b
AK_SPEAK = 0x130c
class ComponentCommand(IntEnum):
Target = 0x1401
DestinationX = 0x1402
DestinationY = 0x1403
Water = 0x1404
Path = 0x1405
Message = 0x1406
Channel = 0x1407
Channels = 0x1408
class ControlMSG(IntEnum):
KG_CONNECT = 0x0101
KG_ACKNOWLEDGE = 0x0102
GK_CONNECT_OK = 0x0103
GK_CONNECT_ERROR = 0x0104
SK_CONNECT = 0x0105
SK_ACKNOWLEDGE = 0x0106
SK_UPDATE = 0x0107
KS_CONNECT_OK = 0x0108
KS_CONNECT_ERROR = 0x0109
KS_UPDATE = 0x010a
KS_COMMANDS = 0x010b
KS_AFTERSHOCKS_INFO = 0x010c
VK_CONNECT = 0x010d
VK_ACKNOWLEDGE = 0x010e
KV_CONNECT_OK = 0x010f
KV_CONNECT_ERROR = 0x0110
KV_TIMESTEP = 0x0111
AK_CONNECT = 0x0112
AK_ACKNOWLEDGE = 0x0113
KA_CONNECT_OK = 0x0114
KA_CONNECT_ERROR = 0x0115
KA_SENSE = 0x0116
SHUTDOWN = 0x0117
ENTITY_ID_REQUEST = 0x0118
ENTITY_ID_RESPONSE = 0x0119
class ComponentControlMSG(IntEnum):
RequestID = 0x0201
AgentID = 0x0202
Version = 0x0203
Name = 0x0204
RequestedEntityTypes = 0x0205
SimulatorID = 0x0206
RequestNumber = 0x0207
NumberOfIDs = 0x0208
NewEntityIDs = 0x0209
Reason = 0x020a
Entities = 0x020b
ViewerID = 0x020c
AgentConfig = 0x020d
Time = 0x020e
Updates = 0x020f
Hearing = 0x0210
INTENSITIES = 0x0211
TIMES = 0x0212
ID = 0x0213
Commands = 0x0214
SimulatorConfig = 0x0215
Changes = 0x0216
MAP={int(u):u for u in list(Entity) +list(Property) +list(Command) +list(ComponentCommand) +list(ControlMSG) +list(ComponentControlMSG) }
\ No newline at end of file
#!/bin/bash
. functions.sh
MAP_DIR=$1
if [[ ! -z "$MAP_DIR" ]]; then
MAP_DIR=$(abspath $MAP_DIR)
if [[ -z "$MAP_DIR" ]]; then
exit 1
fi
fi
echo "starting randomScenarioGenerator..."
makeClasspath $BASEDIR/jars $BASEDIR/lib
execute random-scenario-editor "java -Xmx512m -cp $CP -Dlog4j.log.dir=$BASEDIR/logs/log gis2.scenario.RandomScenarioGenerator $MAP_DIR $*"
\ No newline at end of file
#!/bin/bash
. functions.sh
SCENARIO_DIR=$1
if [[ ! -z "$SCENARIO_DIR" ]]; then
SCENARIO_DIR=$(abspath $SCENARIO_DIR)
if [[ -z "$SCENARIO_DIR" ]]; then
exit 1
fi
fi
echo "starting scenarioEditor...."
makeClasspath $BASEDIR/jars $BASEDIR/lib
execute scenario-editor "java -Xmx512m -cp $CP -Dlog4j.log.dir=$BASEDIR/logs/log gis2.scenario.ScenarioEditor $SCENARIO_DIR"
\ No newline at end of file
#!/bin/bash
. functions.sh
processArgs $*
# Delete old logs
rm -f $LOGDIR/*.log
# startGIS
startKernel --nomenu --autorun
startSims
startViewer
echo "Start your agents"
waitFor $LOGDIR/kernel.log "Kernel has shut down" 30
kill $PIDS
\ No newline at end of file
#!/bin/bash
. functions.sh
processArgs $*
# Delete old logs
rm -f $LOGDIR/*.log
# startGIS
startKernel --nomenu
echo "Start your agents"
waitFor $LOGDIR/kernel.log "Kernel has shut down" 30
kill $PIDS
\ No newline at end of file
#!/bin/bash
trap "echo 'killing...'; ./kill.sh; exit" INT
. functions.sh
processArgs $*
# Delete old logs
rm -f $LOGDIR/*.log
sh kill.sh
# startGIS
startKernel --nomenu
startSims
startViewer
startViewerEventLogger
echo "Start your agents"
waitFor $LOGDIR/kernel.log "Kernel has shut down" 30
kill $PIDS
./kill.sh
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment