-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: karishma <[email protected]>
- Loading branch information
1 parent
8e209a1
commit 2bf7cf9
Showing
2 changed files
with
86 additions
and
7 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
system/topic_state_monitor/schema/topic_state_monitor.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for topic_state_monitor", | ||
"type": "object", | ||
"definitions": { | ||
"topic_state_monitor": { | ||
"type": "object", | ||
"properties": { | ||
"warn_rate": { | ||
"type": "number", | ||
"default": 0.5, | ||
"description": "If the topic rate is lower than this value, the topic status becomes warn_rate" | ||
}, | ||
"error_rate": { | ||
"type": "number", | ||
"default": 0.1, | ||
"description": "If the topic rate is lower than this value, the topic status becomes." | ||
}, | ||
"timeout": { | ||
"type": "number", | ||
"default": 1.0, | ||
"description": "If the topic subscription is stopped for more than this time [s], the topic status becomes timeout." | ||
}, | ||
"window_size": { | ||
"type": "number", | ||
"default": 10, | ||
"description": "Window size of target topic for calculating frequency." | ||
}, | ||
"update_rate": { | ||
"type": "number", | ||
"default": 10.0, | ||
"description": "Timer callback period." | ||
}, | ||
"topic": { | ||
"type": "string", | ||
"description": "Name of target." | ||
}, | ||
"transient_local": { | ||
"type": "boolean", | ||
"default": "false", | ||
"description": "QoS policy of topic subscription (Transient Local/Volatile)." | ||
}, | ||
"best_effort": { | ||
"type": "boolean", | ||
"default": "false", | ||
"description": "QoS policy of topic subscription (Best Effort/Reliable)." | ||
}, | ||
"diag_name": { | ||
"type": "boolean", | ||
"default": "string", | ||
"description": "Name used for the diagnostics to publish." | ||
} | ||
}, | ||
"required": [ | ||
"warn_rate", | ||
"window_size", | ||
"timeout", | ||
"error_rate", | ||
"update_rate", | ||
"topic", | ||
"transient_local", | ||
"best_effort", | ||
"diag_name" | ||
] | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/topic_state_monitor" | ||
} | ||
}, | ||
"required": ["ros__parameters"] | ||
} | ||
}, | ||
"required": ["/**"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters