Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
Signed-off-by: prakash-kannaiah <[email protected]>
  • Loading branch information
pre-commit-ci[bot] authored and prakash-kannaiah committed Oct 16, 2024
1 parent c2692b4 commit c61f38c
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 95 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
<arg name="diag_name" description="diag name"/>
<arg name="param_path" default="$(find-pkg-share topic_state_monitor)/config/topic_state_monitor.param.yaml"/>


<node pkg="topic_state_monitor" exec="topic_state_monitor_node" name="topic_state_monitor_$(var node_name_suffix)" output="screen">
<param name="topic" value="$(var topic)"/>
<param name="topic_type" value="$(var topic_type)"/>
<param name="diag_name" value="$(var diag_name)"/>
<param from="$(var param_path)"/>
</node>
</launch>
</launch>
186 changes: 93 additions & 93 deletions system/topic_state_monitor/schema/topic_state_monitor.schema.json
Original file line number Diff line number Diff line change
@@ -1,96 +1,96 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Topic State Monitor Params",
"type": "object",
"definitions": {
"topic_state_monitor": {
"type": "object",
"properties": {
"topic": {
"type": "string",
"description": "Name of target topic"
},
"topic_type": {
"type": "string",
"description": "Type of target topic (used if the topic is not transform)"
},
"frame_id": {
"type": "string",
"description": "Frame ID of transform parent (used if the topic is transform)"
},
"child_frame_id": {
"type": "string",
"description": "Frame ID of transform child (used if the topic is transform)"
},
"transient_local": {
"type": "boolean",
"description": "QoS policy of topic subscription (Transient Local/Volatile)",
"default": false
},
"best_effort": {
"type": "boolean",
"description": "QoS policy of topic subscription (Best Effort/Reliable)",
"default": false
},
"diag_name": {
"type": "string",
"description": "Name used for the diagnostics to publish"
},
"update_rate": {
"type": "number",
"description": "Timer callback period [Hz]",
"default": 10.0
},
"warn_rate": {
"type": "number",
"description": "If the topic rate is lower than this value, the topic status becomes `WarnRate`",
"default": 0.5
},
"error_rate": {
"type": "number",
"description": "If the topic rate is lower than this value, the topic status becomes `ErrorRate`",
"default": 0.1
},
"timeout": {
"type": "number",
"description": "If the topic subscription is stopped for more than this time [s], the topic status becomes `Timeout`",
"default": 1.0
},
"window_size": {
"type": "integer",
"description": "Window size of target topic for calculating",
"default": 10
}
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Topic State Monitor Params",
"type": "object",
"definitions": {
"topic_state_monitor": {
"type": "object",
"properties": {
"topic": {
"type": "string",
"description": "Name of target topic"
},
"required": [
"topic",
"topic_type",
"frame_id",
"child_frame_id",
"transient_local",
"best_effort",
"diag_name",
"update_rate",
"warn_rate",
"error_rate",
"timeout",
"window_size"
],
"additionalProperties": false
}
},
"properties": {
"/**": {
"type": "object",
"properties": {
"ros__parameters": {
"$ref": "#/definitions/topic_state_monitor"
}
"topic_type": {
"type": "string",
"description": "Type of target topic (used if the topic is not transform)"
},
"required": ["ros__parameters"],
"additionalProperties": false
}
},
"required": ["/**"],
"additionalProperties": false
}
"frame_id": {
"type": "string",
"description": "Frame ID of transform parent (used if the topic is transform)"
},
"child_frame_id": {
"type": "string",
"description": "Frame ID of transform child (used if the topic is transform)"
},
"transient_local": {
"type": "boolean",
"description": "QoS policy of topic subscription (Transient Local/Volatile)",
"default": false
},
"best_effort": {
"type": "boolean",
"description": "QoS policy of topic subscription (Best Effort/Reliable)",
"default": false
},
"diag_name": {
"type": "string",
"description": "Name used for the diagnostics to publish"
},
"update_rate": {
"type": "number",
"description": "Timer callback period [Hz]",
"default": 10.0
},
"warn_rate": {
"type": "number",
"description": "If the topic rate is lower than this value, the topic status becomes `WarnRate`",
"default": 0.5
},
"error_rate": {
"type": "number",
"description": "If the topic rate is lower than this value, the topic status becomes `ErrorRate`",
"default": 0.1
},
"timeout": {
"type": "number",
"description": "If the topic subscription is stopped for more than this time [s], the topic status becomes `Timeout`",
"default": 1.0
},
"window_size": {
"type": "integer",
"description": "Window size of target topic for calculating",
"default": 10
}
},
"required": [
"topic",
"topic_type",
"frame_id",
"child_frame_id",
"transient_local",
"best_effort",
"diag_name",
"update_rate",
"warn_rate",
"error_rate",
"timeout",
"window_size"
],
"additionalProperties": false
}
},
"properties": {
"/**": {
"type": "object",
"properties": {
"ros__parameters": {
"$ref": "#/definitions/topic_state_monitor"
}
},
"required": ["ros__parameters"],
"additionalProperties": false
}
},
"required": ["/**"],
"additionalProperties": false
}

0 comments on commit c61f38c

Please sign in to comment.