observations/events/player/marker_placed
header
| Field | Type | Required | Allowed values | Description |
|---|---|---|---|---|
| timestamp | string | ✓ | ||
| message_type | string | ✓ | event |
|
| version | string | ✓ | The message format version |
msg
| Field | Type | Required | Allowed values | Description |
|---|---|---|---|---|
| experiment_id | string | ✓ | ||
| trial_id | string | |||
| timestamp | string | ✓ | ||
| source | string | ✓ | ||
| sub_type | string | ✓ | Event:MarkerPlaced |
|
| version | string | ✓ | ||
| replay_parent_type | string|null | TRIAL REPLAY null |
||
| replay_parent_id | string|null | |||
| replay_id | string|null |
data
| Field | Type | Required | Allowed values | Description |
|---|---|---|---|---|
| mission_timer | string | ✓ | ||
| elapsed_milliseconds | number | ✓ | ||
| participant_id | string | ✓ | ||
| playername | string | |||
| type | string | ✓ | red_abrasion red_bonedamage red_novictim red_regularvictim red_criticalvictim red_rubble red_threat red_sos green_abrasion green_bonedamage green_novictim green_regularvictim green_criticalvictim green_rubble green_threat green_sos blue_abrasion blue_bonedamage blue_novictim blue_regularvictim blue_criticalvictim blue_rubble blue_threat blue_sos |
|
| marker_x | number | ✓ | ||
| marker_y | number | ✓ | ||
| marker_z | number | ✓ |
Example message
{"header": {
"timestamp": "2019-12-26T12:47:23.1234Z",
"message_type": "event",
"version": "1.0"
},
"msg": {
"experiment_id": "123e4567-e89b-12d3-a456-426655440000",
"trial_id": "123e4567-e89b-12d3-a456-426655440000",
"timestamp": "2019-12-26T14:05:02.1412Z",
"source": "simulator",
"sub_type": "Event:MarkerPlaced",
"version": "2.0"},
"data": {
"mission_timer":"8 : 36",
"elapsed_milliseconds": 15113,
"participant_id": "P000326",
"type": "red_abrasion",
"marker_x": -2185,
"marker_y":28,
"marker_z":198
}
}Raw JSON Schema (resolved)
{
"$id": "https://gitlab-external.aptima.com/adapt/testbed/MessageSpecs/MarkerPlaced/marker_placed_event_message.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {},
"properties": {
"data": {
"$id": "#/properties/data",
"properties": {
"elapsed_milliseconds": {
"$id": "#/properties/event/state/elapsed_milliseconds",
"examples": [
5000,
77459,
689457
],
"pattern": "^[0-9]+$",
"title": "The Elapsed Milliseconds Schema",
"type": "number"
},
"marker_x": {
"$id": "#/properties/data/properties/marker_x",
"examples": [
-2185
],
"pattern": "^([0-9]+?)$",
"title": "The Marker_X Schema",
"type": "number"
},
"marker_y": {
"$id": "#/properties/data/properties/marker_y",
"examples": [
52
],
"pattern": "^([0-9]+?)$",
"title": "The Marker_Y Schema",
"type": "number"
},
"marker_z": {
"$id": "#/properties/data/properties/marker_z",
"examples": [
194
],
"pattern": "^([0-9]+?)$",
"title": "The Marker_Z Schema",
"type": "number"
},
"mission_timer": {
"$id": "#/properties/data/properties/mission_timer",
"examples": [
"8 : 36"
],
"pattern": "^(.*)$",
"title": "The Mission Timer Schema",
"type": "string"
},
"participant_id": {
"$id": "#/properties/data/participant_id",
"examples": [
"E000213"
],
"pattern": "^(.*)$",
"title": "The Participant id Schema",
"type": "string"
},
"playername": {
"$id": "#/properties/data/playername",
"examples": [
"Aptiminer1"
],
"pattern": "^(.*)$",
"title": "The Playername Schema",
"type": "string"
},
"type": {
"$id": "#/properties/data/properties/type",
"enum": [
"red_abrasion",
"red_bonedamage",
"red_novictim",
"red_regularvictim",
"red_criticalvictim",
"red_rubble",
"red_threat",
"red_sos",
"green_abrasion",
"green_bonedamage",
"green_novictim",
"green_regularvictim",
"green_criticalvictim",
"green_rubble",
"green_threat",
"green_sos",
"blue_abrasion",
"blue_bonedamage",
"blue_novictim",
"blue_regularvictim",
"blue_criticalvictim",
"blue_rubble",
"blue_threat",
"blue_sos"
],
"examples": [
"blue_abrasion"
],
"title": "The Type Schema",
"type": "string"
}
},
"required": [
"mission_timer",
"elapsed_milliseconds",
"participant_id",
"marker_x",
"marker_y",
"marker_z",
"type"
],
"title": "The Marker Placed Data Schema",
"type": "object"
},
"header": {
"$id": "http://asist.aptima.com/schemas/common_header.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {},
"properties": {
"message_type": {
"$id": "#/properties/message_type",
"const": "event",
"enum": [
"control",
"observation",
"chat",
"status",
"trial",
"event",
"groundtruth",
"experiment",
"metadata",
"agent"
],
"examples": [
"observation"
],
"pattern": "^([a-z_]*?)$",
"title": "The Message_type Schema",
"type": "string"
},
"timestamp": {
"$id": "#/properties/timestamp",
"examples": [
"2019-12-26T12:47:23.1234Z"
],
"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[.]?[0-9]{0,}?Z",
"title": "The Timestamp Schema",
"type": "string"
},
"version": {
"$id": "#/properties/version",
"examples": [
"1.0",
"2.3.1"
],
"pattern": "^([0-9]+\\.)?([0-9]+\\.)?([0-9]+)$",
"title": "The message format version",
"type": "string"
}
},
"required": [
"timestamp",
"message_type",
"version"
],
"title": "ASIST message common header Schema",
"type": "object",
"version": "0.3"
},
"msg": {
"$id": "http://asist.aptima.com/schemas/event_message.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {},
"properties": {
"experiment_id": {
"$id": "#/properties/experiment_id",
"default": "",
"examples": [
"123e4567-e89b-12d3-a456-426655440000"
],
"pattern": "(([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})|Not Set|Null|null)",
"title": "The Experiment Id Schema",
"type": "string"
},
"replay_id": {
"$id": "#/properties/replay_id",
"default": "",
"examples": [
"123e4567-e89b-12d3-a456-426655440000"
],
"pattern": "(([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})|Not Set|null|Null)",
"title": "The Replay Id Schema",
"type": [
"string",
"null"
]
},
"replay_parent_id": {
"$id": "#/properties/replay_parent_id",
"default": "",
"examples": [
"123e4567-e89b-12d3-a456-426655440000"
],
"pattern": "(([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})|Not Set|null|Null)",
"title": "The Replay Parent Id Schema",
"type": [
"string",
"null"
]
},
"replay_parent_type": {
"$id": "#/properties/replay_parent_type",
"enum": [
"TRIAL",
"REPLAY",
null
],
"title": "The Replay Parent Type Schema",
"type": [
"string",
"null"
]
},
"source": {
"$id": "#/properties/source",
"default": "",
"examples": [
"simulator"
],
"pattern": "^(.*)$",
"title": "The Source Schema",
"type": "string"
},
"sub_type": {
"$id": "#/properties/sub_type",
"const": "Event:MarkerPlaced",
"default": "",
"examples": [
"equip",
"triage"
],
"pattern": "^([a-zA-Z0-9_:]*?)$",
"title": "The Sub Type Schema",
"type": "string"
},
"timestamp": {
"$id": "#/properties/timestamp",
"default": "",
"examples": [
"2019-12-26T14:05:02.3412Z"
],
"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[.]?[0-9]{0,}?Z",
"title": "The Timestamp Schema",
"type": "string"
},
"trial_id": {
"$id": "#/properties/trial_id",
"default": "",
"examples": [
"123e4567-e89b-12d3-a456-426655440000"
],
"pattern": "(([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})|Not Set|null|Null)",
"title": "The Trial Id Schema",
"type": "string"
},
"version": {
"$id": "#/properties/version",
"default": "",
"examples": [
"0.1",
"1.0.1"
],
"pattern": "^([.]*)|(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
"title": "The Version Schema",
"type": "string"
}
},
"required": [
"experiment_id",
"timestamp",
"source",
"sub_type",
"version"
],
"title": "The Event Message Schema",
"type": "object",
"version": "0.5"
}
},
"required": [
"header",
"msg",
"data"
],
"title": "The Marker Placed Event Schema",
"type": "object",
"version": "0.1"
}Upstream spec documentation
Data Subtype: Event Message Format
This data message subtype is used to communicate event data for both the world and the player.
TOPIC
observations/events/player/marker_placed
Message Fields
| Field Name | Type | Description |
|---|---|---|
| header | object | From Common Message Format section |
| msg | object | From the Common Event Message Format section |
| data.mission_timer | string | the mission time of the event |
| data.elapsed_milliseconds | number | the number of elapsed milliseconds since mission start |
| data.participant_id | string | The participant_id of the entity that placed the marker block |
| data.marker_x | integer | the x location of the marker |
| data.marker_y | integer | the y location of the marker |
| data.marker_z | integer | the z location of the marker |
| data.type | string | the type of the marker [red_abrasion,red_bonedamage,red_novictim,red_regularvictim,red_criticalvictim,red_rubble,red_threat,red_sos,green_abrasion,green_bonedamage,green_novictim,green_regularvictim,green_criticalvictim,green_rubble,green_threat,green_sos,blue_abrasion,blue_bonedamage,blue_novictim,blue_regularvictim,blue_criticalvictim,blue_rubble,blue_threat,blue_sos] |
Message Example
{"header": {
"timestamp": "2019-12-26T12:47:23.1234Z",
"message_type": "event",
"version": "1.0"
},
"msg": {
"experiment_id": "123e4567-e89b-12d3-a456-426655440000",
"trial_id": "123e4567-e89b-12d3-a456-426655440000",
"timestamp": "2019-12-26T14:05:02.1412Z",
"source": "simulator",
"sub_type": "Event:MarkerPlaced",
"version": "2.0"},
"data": {
"mission_timer":"8 : 36",
"elapsed_milliseconds": 15113,
"participant_id": "P000326",
"type": "red_abrasion",
"marker_x": -2185,
"marker_y":28,
"marker_z":198
}
}
VERSION | DATE | DETAILS | --- | --- | --- | | 2.1 | 11/19/2021 | updated marker block enums --> removed [critical,wildcard] replaced with [novictim,sos] for red,green,blue variations | | 2.0 | 11/1/2021 | updated marker block enums to the following list: [red_abrasion,red_bonedamage,red_critical,red_regularvictim,red_criticalvictim,red_rubble,red_threat,red_wildcard,green_abrasion,green_bonedamage,green_critical,green_regularvictim,green_criticalvictim,green_rubble,green_threat,green_wildcard,blue_abrasion,blue_bonedamage,blue_critical,blue_regularvictim,blue_criticalvictim,blue_rubble,blue_threat,blue_wildcard] | | 1.0 | 3/10/2021 | Initial Schema creation |