Skip to content

Commit 1f93749

Browse files
committed
refactor: Create JSON Schema file of transform_maps
Signed-off-by: Motsu-san <masahiro.sakamoto@tier4.jp>
1 parent 68f9ddb commit 1f93749

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Parameters for Transforming Maps",
4+
"type": "object",
5+
"definitions": {
6+
"transform_maps": {
7+
"type": "object",
8+
"properties": {
9+
"llt_map_path": {
10+
"type": "string",
11+
"description": "Path pointing to the input lanelet2 file",
12+
"default": ""
13+
},
14+
"pcd_map_path": {
15+
"type": "string",
16+
"description": "Path pointing to the input point cloud file",
17+
"default": ""
18+
},
19+
"llt_output_path": {
20+
"type": "string",
21+
"description": "Path pointing to the output lanelet2 file",
22+
"default": ""
23+
},
24+
"pcd_output_path": {
25+
"type": "string",
26+
"description": "Path pointing to the output point cloud file",
27+
"default": ""
28+
},
29+
"x": {
30+
"type": "number",
31+
"default": 0.0,
32+
"description": "x factor of Translation vector for transforming maps [m]"
33+
},
34+
"y": {
35+
"type": "number",
36+
"default": 0.0,
37+
"description": "y factor of Translation vector for transforming maps [m]"
38+
},
39+
"z": {
40+
"type": "number",
41+
"default": 0.0,
42+
"description": "z factor of Translation vector for transforming maps [m]"
43+
},
44+
"roll": {
45+
"type": "number",
46+
"default": 0.0,
47+
"description": "roll factor of Rotation vector for transforming maps [rad]"
48+
},
49+
"pitch": {
50+
"type": "number",
51+
"default": 0.0,
52+
"description": "pitch factor of Rotation vector for transforming maps [rad]"
53+
},
54+
"yaw": {
55+
"type": "number",
56+
"default": 0.0,
57+
"description": "yaw factor of Rotation vector for transforming maps [rad]"
58+
}
59+
},
60+
"required": [
61+
"x",
62+
"y",
63+
"z",
64+
"roll",
65+
"pitch",
66+
"yaw"
67+
]
68+
}
69+
},
70+
"properties": {
71+
"/**": {
72+
"type": "object",
73+
"properties": {
74+
"ros__parameters": {
75+
"$ref": "#/definitions/transform_maps"
76+
}
77+
},
78+
"required": [
79+
"ros__parameters"
80+
]
81+
}
82+
},
83+
"required": [
84+
"/**"
85+
]
86+
}

0 commit comments

Comments
 (0)