Skip to content

Commit

Permalink
refactor(ad_api_adaptors): rework parameter (#8796)
Browse files Browse the repository at this point in the history
* refactor(ad_api_adaptors): rework parameter

* <refactor(ad_api_adaptors): rework parameter>

* ad_api_adaptors.schema.json

* style(pre-commit): autofix

* refactor(ad_api_adaptors): rework parameter

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
prakash-kannaiah and pre-commit-ci[bot] authored Sep 24, 2024
1 parent c40efa2 commit 897e2a9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/default_ad_api_helpers/ad_api_adaptors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ The clear API is called automatically before setting the route.
| Client | - | /api/routing/clear_route | The route clear API. |
| Client | - | /api/routing/set_route_points | The route points set API. |
| Client | - | /api/routing/change_route_points | The route points change API. |

## parameters

{{ json_to_markdown("/system/default_ad_api_helpers/ad_api_adaptors/schema/ad_api_adaptors.schema.json") }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ad_api_adaptors parameter",
"type": "object",
"definitions": {
"ad_api_adaptors": {
"type": "object",
"properties": {
"initial_pose_particle_covariance": {
"type": "array",
"description": "initial_pose_particle_covariance",
"default": [
4.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.01, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.01, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.01, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 1.0
]
}
},
"required": ["initial_pose_particle_covariance"],
"additionalProperties": false
}
},
"properties": {
"/**": {
"type": "object",
"properties": {
"ros__parameters": {
"$ref": "#/definitions/initial_pose_particle_covariance"
}
},
"required": ["ros__parameters"],
"additionalProperties": false
}
},
"required": ["/**"],
"additionalProperties": false
}

0 comments on commit 897e2a9

Please sign in to comment.