Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-message-format
Commits
982cde9b
Commit
982cde9b
authored
2 months ago
by
Trishna Saeharaseelan
Browse files
Options
Download
Email Patches
Plain Diff
refactor(autonomy): add pause enum and rename message type
parent
cff09f1a
dev
master
v2.0.0
v2.0.0-beta.11
3 merge requests
!59
Release v2.0.0
,
!57
Add new Autonomy message type
,
!36
Resolve "Create temporary mas-dt branch for initial schema refactor"
Pipeline
#261980
failed with stages
in 1 minute and 28 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
examples/mas-dt/autonomy.json
examples/mas-dt/autonomy.json
+1
-1
formats/autonomy_engine_control.py
formats/autonomy_engine_control.py
+2
-2
generate_schema_config.py
generate_schema_config.py
+2
-2
project/soar/swagger.json
project/soar/swagger.json
+1
-0
No files found.
examples/mas-dt/autonomy.json
View file @
982cde9b
...
...
@@ -10,7 +10,7 @@
},
"payload"
:{
"message_type"
:
"autonomy"
,
"planning_config_ID"
:
1
,
"planning_config_ID"
:
"b127003c-0000-11aa-a1eb-b1cdf2342fdd"
,
"state"
:
"start"
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
formats/autonomy.py
→
formats/autonomy
_engine_control
.py
View file @
982cde9b
...
...
@@ -3,7 +3,7 @@
configurations and default instructions
"""
autonomy_schema
=
{
autonomy_
engine_control_
schema
=
{
"type"
:
"object"
,
"properties"
:
{
"message_type"
:
{
...
...
@@ -35,7 +35,7 @@ autonomy_schema = {
],
"state"
:
{
"type"
:
"string"
,
"enum"
:
[
"start"
,
"stop"
],
"enum"
:
[
"start"
,
"pause"
,
"stop"
],
"description"
:
"Autonomy engine instruction to start or stop model"
,
"example"
:
"stop"
,
},
...
...
This diff is collapsed.
Click to expand it.
generate_schema_config.py
View file @
982cde9b
from
formats.header
import
message_header
from
formats.message
import
message_schema
from
formats.autonomy
import
autonomy_schema
from
formats.autonomy
_engine_control
import
autonomy_
engine_control_
schema
from
formats.mission_plan
import
mission_plan_schema
from
formats.mission_plan_encoded
import
mission_plan_encoded_schema
from
formats.observation
import
observation_schema
...
...
@@ -67,7 +67,7 @@ def get_swagger_config(reload=False):
"MESSAGE"
:
message_schema
,
"header"
:
message_header
,
"payload"
:
payload_schema
,
"autonomy"
:
autonomy_schema
,
"autonomy"
:
autonomy_
engine_control_
schema
,
"mission_plan"
:
mission_plan_schema
,
"mission_plan_encoded"
:
mission_plan_encoded_schema
,
"observation"
:
observation_schema
,
...
...
This diff is collapsed.
Click to expand it.
project/soar/swagger.json
View file @
982cde9b
...
...
@@ -146,6 +146,7 @@
"description"
:
"Autonomy engine instruction to start or stop model"
,
"enum"
:
[
"start"
,
"pause"
,
"stop"
],
"example"
:
"stop"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment