Skip to content

Commit 897e2a9

Browse files
refactor(ad_api_adaptors): rework parameter (#8796)
* 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>
1 parent c40efa2 commit 897e2a9

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

system/default_ad_api_helpers/ad_api_adaptors/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ The clear API is called automatically before setting the route.
2929
| Client | - | /api/routing/clear_route | The route clear API. |
3030
| Client | - | /api/routing/set_route_points | The route points set API. |
3131
| Client | - | /api/routing/change_route_points | The route points change API. |
32+
33+
## parameters
34+
35+
{{ json_to_markdown("/system/default_ad_api_helpers/ad_api_adaptors/schema/ad_api_adaptors.schema.json") }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "ad_api_adaptors parameter",
4+
"type": "object",
5+
"definitions": {
6+
"ad_api_adaptors": {
7+
"type": "object",
8+
"properties": {
9+
"initial_pose_particle_covariance": {
10+
"type": "array",
11+
"description": "initial_pose_particle_covariance",
12+
"default": [
13+
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,
14+
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,
15+
0.0, 1.0
16+
]
17+
}
18+
},
19+
"required": ["initial_pose_particle_covariance"],
20+
"additionalProperties": false
21+
}
22+
},
23+
"properties": {
24+
"/**": {
25+
"type": "object",
26+
"properties": {
27+
"ros__parameters": {
28+
"$ref": "#/definitions/initial_pose_particle_covariance"
29+
}
30+
},
31+
"required": ["ros__parameters"],
32+
"additionalProperties": false
33+
}
34+
},
35+
"required": ["/**"],
36+
"additionalProperties": false
37+
}

0 commit comments

Comments
 (0)