Skip to content

Commit

Permalink
Merge branch 'main' into bmz/service-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGodbehere authored Oct 15, 2024
2 parents 3cb2067 + ec22d3a commit 0b20366
Show file tree
Hide file tree
Showing 6 changed files with 559 additions and 0 deletions.
94 changes: 94 additions & 0 deletions AGV/AGV-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"$id": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/AGV/AGV-v1.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"Schema_UUID": {
"const": "dce8a007-6a64-41d2-9851-89451e871613"
},
"Instance_UUID": {
"description": "The unique identifier for this object. (A UUID specified by RFC4122).",
"type": "string",
"format": "uuid"
},
"Device_Information": {
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Device_Information-v1.json"
},
"Emergency_Stops": {
"patternProperties": {
"^[a-zA-Z0-9_]*$": {
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Cell/Emergency_Stop-v1.json"
}
},
"type": "object"
},
"Position": {
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Pose-v1.json"
},
"Velocity": {
"type": "object",
"properties": {
"Linear": {
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Metric-v1.json"
},
{
"properties": {
"Documentation": {
"default": ""
},
"Sparkplug_Type": {
"enum": [
"FloatLE",
"FloatBE",
"DoubleLE",
"DoubleBE"
]
}
}
}
]
},
"Angular": {
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Metric-v1.json"
},
{
"properties": {
"Documentation": {
"default": ""
},
"Sparkplug_Type": {
"enum": [
"FloatLE",
"FloatBE",
"DoubleLE",
"DoubleBE"
]
}
}
}
]
}
},
"required": []
},
"Current_Job": {
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/AGV/Job-v1.json"
},
"Job_Queue": {
"patternProperties": {
"^[a-zA-Z0-9_]*$": {
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/AGV/Job-v1.json"
}
},
"type": "object"
}
},
"required": [
"Schema_UUID",
"Instance_UUID"
]
}
230 changes: 230 additions & 0 deletions AGV/Job-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
{
"$id": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/AGV/Job-v1.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"Schema_UUID": {
"const": "0fb61e8d-a6ca-4907-9a14-ff11ec857fd9"
},
"Instance_UUID": {
"description": "The unique identifier for this object. (A UUID specified by RFC4122).",
"type": "string",
"format": "uuid"
},
"Name": {
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Metric-v1.json"
},
{
"properties": {
"Documentation": {
"default": null
},
"Sparkplug_Type": {
"enum": [
"String"
]
}
}
}
]
},
"ID": {
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Metric-v1.json"
},
{
"properties": {
"Documentation": {
"default": null
},
"Sparkplug_Type": {
"enum": [
"String",
"UInt8",
"UInt16LE",
"UInt16BE",
"UInt32LE",
"UInt32BE",
"UInt64LE",
"UInt64BE"
]
}
}
}
]
},
"Description": {
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Metric-v1.json"
},
{
"properties": {
"Documentation": {
"default": null
},
"Sparkplug_Type": {
"enum": [
"String"
]
}
}
}
]
},
"Type": {
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Metric-v1.json"
},
{
"properties": {
"Documentation": {
"default": null
},
"Sparkplug_Type": {
"enum": [
"String"
]
}
}
}
]
},
"Timestamps": {
"type": "object",
"properties": {
"Queued": {
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Metric-v1.json"
},
{
"properties": {
"Documentation": {
"default": ""
},
"Sparkplug_Type": {
"enum": [
"String",
"UInt8",
"UInt16LE",
"UInt16BE",
"UInt32LE",
"UInt32BE",
"UInt64LE",
"UInt64BE"
]
}
}
}
]
},
"Started": {
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Metric-v1.json"
},
{
"properties": {
"Documentation": {
"default": ""
},
"Sparkplug_Type": {
"enum": [
"String",
"UInt8",
"UInt16LE",
"UInt16BE",
"UInt32LE",
"UInt32BE",
"UInt64LE",
"UInt64BE"
]
}
}
}
]
},
"Completed": {
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Metric-v1.json"
},
{
"properties": {
"Documentation": {
"default": ""
},
"Sparkplug_Type": {
"enum": [
"String",
"UInt8",
"UInt16LE",
"UInt16BE",
"UInt32LE",
"UInt32BE",
"UInt64LE",
"UInt64BE"
]
}
}
}
]
}
},
"required": []
},
"Status": {
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Metric-v1.json"
},
{
"properties": {
"Documentation": {
"default": ""
},
"Sparkplug_Type": {
"enum": [
"String"
]
}
}
}
]
},
"Fail_Count": {
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Metric-v1.json"
},
{
"properties": {
"Documentation": {
"default": ""
},
"Sparkplug_Type": {
"enum": [
"UInt8",
"UInt16LE",
"UInt16BE",
"UInt32LE",
"UInt32BE",
"UInt64LE",
"UInt64BE"
]
}
}
}
]
}
},
"required": [
"Schema_UUID",
"Instance_UUID"
]
}
Loading

0 comments on commit 0b20366

Please sign in to comment.