-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(sensing/image_transport_decompressor): rework parameters (#6746
) * add param, schema file, update readme Signed-off-by: oguzkaganozt <[email protected]> * style(pre-commit): autofix --------- Signed-off-by: oguzkaganozt <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]> Co-authored-by: Yoshi Ri <[email protected]>
- Loading branch information
1 parent
58a57c4
commit d7b90a1
Showing
5 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
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
3 changes: 3 additions & 0 deletions
3
sensing/image_transport_decompressor/config/image_transport_decompressor.param.yaml
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,3 @@ | ||
/**: | ||
ros__parameters: | ||
encoding: default |
2 changes: 2 additions & 0 deletions
2
sensing/image_transport_decompressor/launch/image_transport_decompressor.launch.xml
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<launch> | ||
<arg name="input_topic_name" default="/input/compressed_image"/> | ||
<arg name="output_topic_name" default="/output/raw_image"/> | ||
<arg name="param_file" default="$(find-pkg-share image_transport_decompressor)/config/image_transport_decompressor.param.yaml"/> | ||
|
||
<node pkg="image_transport_decompressor" exec="image_transport_decompressor_node" name="$(anon image_transport_decompressor_node)"> | ||
<remap from="~/input/compressed_image" to="$(var input_topic_name)"/> | ||
<remap from="~/output/raw_image" to="$(var output_topic_name)"/> | ||
<param from="$(var param_file)" allow_substs="true"/> | ||
</node> | ||
</launch> |
30 changes: 30 additions & 0 deletions
30
sensing/image_transport_decompressor/schema/image_transport_decompressor.schema.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,30 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for Image Transport Decompressor", | ||
"type": "object", | ||
"definitions": { | ||
"image_transport_decompressor": { | ||
"type": "object", | ||
"properties": { | ||
"encoding": { | ||
"type": "string", | ||
"description": "The image encoding to use for the decompressed image", | ||
"default": "default" | ||
} | ||
}, | ||
"required": ["encoding"] | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/image_transport_decompressor" | ||
} | ||
}, | ||
"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