|
2 | 2 | "$schema": "http://json-schema.org/draft-07/schema#",
|
3 | 3 | "title": "Parameters for Synchronized Grid Map Fusion Node",
|
4 | 4 | "type": "object",
|
| 5 | + "definitions": { |
| 6 | + "synchronized_grid_map_fusion": { |
| 7 | + "type": "object", |
| 8 | + "properties": { |
| 9 | + "fusion_input_ogm_topics": { |
| 10 | + "type": "array", |
| 11 | + "description": "List of fusion input occupancy grid map topics.", |
| 12 | + "items": { |
| 13 | + "type": "string" |
| 14 | + }, |
| 15 | + "default": ["topic1", "topic2"] |
| 16 | + }, |
| 17 | + "input_ogm_reliabilities": { |
| 18 | + "type": "array", |
| 19 | + "description": "Reliability of each sensor for fusion.", |
| 20 | + "items": { |
| 21 | + "type": "number", |
| 22 | + "minimum": 0.0, |
| 23 | + "maximum": 1.0 |
| 24 | + }, |
| 25 | + "default": [0.8, 0.2] |
| 26 | + }, |
| 27 | + "fusion_method": { |
| 28 | + "type": "string", |
| 29 | + "description": "Method for occupancy grid map fusion.", |
| 30 | + "enum": ["overwrite", "log-odds", "dempster-shafer"], |
| 31 | + "default": "overwrite" |
| 32 | + }, |
| 33 | + "match_threshold_sec": { |
| 34 | + "type": "number", |
| 35 | + "description": "Time threshold for matching in seconds.", |
| 36 | + "default": 0.01 |
| 37 | + }, |
| 38 | + "timeout_sec": { |
| 39 | + "type": "number", |
| 40 | + "description": "Timeout for synchronization in seconds.", |
| 41 | + "default": 0.1 |
| 42 | + }, |
| 43 | + "input_offset_sec": { |
| 44 | + "type": "array", |
| 45 | + "description": "Offset for each input in seconds.", |
| 46 | + "items": { |
| 47 | + "type": "number" |
| 48 | + }, |
| 49 | + "default": [0.0, 0.0] |
| 50 | + }, |
| 51 | + "map_frame_": { |
| 52 | + "type": "string", |
| 53 | + "description": "The frame ID of the map.", |
| 54 | + "default": "map" |
| 55 | + }, |
| 56 | + "base_link_frame_": { |
| 57 | + "type": "string", |
| 58 | + "description": "The frame ID of the base link.", |
| 59 | + "default": "base_link" |
| 60 | + }, |
| 61 | + "grid_map_origin_frame_": { |
| 62 | + "type": "string", |
| 63 | + "description": "The frame ID of the grid map origin.", |
| 64 | + "default": "base_link" |
| 65 | + }, |
| 66 | + "fusion_map_length_x": { |
| 67 | + "type": "number", |
| 68 | + "description": "The length of the fusion map in the x direction.", |
| 69 | + "default": 100.0 |
| 70 | + }, |
| 71 | + "fusion_map_length_y": { |
| 72 | + "type": "number", |
| 73 | + "description": "The length of the fusion map in the y direction.", |
| 74 | + "default": 100.0 |
| 75 | + }, |
| 76 | + "fusion_map_resolution": { |
| 77 | + "type": "number", |
| 78 | + "description": "The resolution of the fusion map.", |
| 79 | + "default": 0.5 |
| 80 | + } |
| 81 | + }, |
| 82 | + "required": [ |
| 83 | + "fusion_input_ogm_topics", |
| 84 | + "input_ogm_reliabilities", |
| 85 | + "fusion_method", |
| 86 | + "match_threshold_sec", |
| 87 | + "timeout_sec", |
| 88 | + "input_offset_sec", |
| 89 | + "map_frame_", |
| 90 | + "base_link_frame_", |
| 91 | + "grid_map_origin_frame_", |
| 92 | + "fusion_map_length_x", |
| 93 | + "fusion_map_length_y", |
| 94 | + "fusion_map_resolution" |
| 95 | + ], |
| 96 | + "additionalProperties": false |
| 97 | + } |
| 98 | + }, |
5 | 99 | "properties": {
|
6 | 100 | "/**": {
|
7 | 101 | "type": "object",
|
8 | 102 | "properties": {
|
9 | 103 | "ros__parameters": {
|
10 |
| - "type": "object", |
11 |
| - "properties": { |
12 |
| - "fusion_input_ogm_topics": { |
13 |
| - "type": "array", |
14 |
| - "description": "List of fusion input occupancy grid map topics.", |
15 |
| - "items": { |
16 |
| - "type": "string" |
17 |
| - }, |
18 |
| - "default": ["topic1", "topic2"] |
19 |
| - }, |
20 |
| - "input_ogm_reliabilities": { |
21 |
| - "type": "array", |
22 |
| - "description": "Reliability of each sensor for fusion.", |
23 |
| - "items": { |
24 |
| - "type": "number", |
25 |
| - "minimum": 0.0, |
26 |
| - "maximum": 1.0 |
27 |
| - }, |
28 |
| - "default": [0.8, 0.2] |
29 |
| - }, |
30 |
| - "fusion_method": { |
31 |
| - "type": "string", |
32 |
| - "description": "Method for occupancy grid map fusion.", |
33 |
| - "enum": ["overwrite", "log-odds", "dempster-shafer"], |
34 |
| - "default": "overwrite" |
35 |
| - }, |
36 |
| - "match_threshold_sec": { |
37 |
| - "type": "number", |
38 |
| - "description": "Time threshold for matching in seconds.", |
39 |
| - "default": 0.01 |
40 |
| - }, |
41 |
| - "timeout_sec": { |
42 |
| - "type": "number", |
43 |
| - "description": "Timeout for synchronization in seconds.", |
44 |
| - "default": 0.1 |
45 |
| - }, |
46 |
| - "input_offset_sec": { |
47 |
| - "type": "array", |
48 |
| - "description": "Offset for each input in seconds.", |
49 |
| - "items": { |
50 |
| - "type": "number" |
51 |
| - }, |
52 |
| - "default": [0.0, 0.0] |
53 |
| - }, |
54 |
| - "map_frame_": { |
55 |
| - "type": "string", |
56 |
| - "description": "The frame ID of the map.", |
57 |
| - "default": "map" |
58 |
| - }, |
59 |
| - "base_link_frame_": { |
60 |
| - "type": "string", |
61 |
| - "description": "The frame ID of the base link.", |
62 |
| - "default": "base_link" |
63 |
| - }, |
64 |
| - "grid_map_origin_frame_": { |
65 |
| - "type": "string", |
66 |
| - "description": "The frame ID of the grid map origin.", |
67 |
| - "default": "base_link" |
68 |
| - }, |
69 |
| - "fusion_map_length_x": { |
70 |
| - "type": "number", |
71 |
| - "description": "The length of the fusion map in the x direction.", |
72 |
| - "default": 100.0 |
73 |
| - }, |
74 |
| - "fusion_map_length_y": { |
75 |
| - "type": "number", |
76 |
| - "description": "The length of the fusion map in the y direction.", |
77 |
| - "default": 100.0 |
78 |
| - }, |
79 |
| - "fusion_map_resolution": { |
80 |
| - "type": "number", |
81 |
| - "description": "The resolution of the fusion map.", |
82 |
| - "default": 0.5 |
83 |
| - } |
84 |
| - }, |
85 |
| - "required": [ |
86 |
| - "fusion_input_ogm_topics", |
87 |
| - "input_ogm_reliabilities", |
88 |
| - "fusion_method", |
89 |
| - "match_threshold_sec", |
90 |
| - "timeout_sec", |
91 |
| - "input_offset_sec", |
92 |
| - "map_frame_", |
93 |
| - "base_link_frame_", |
94 |
| - "grid_map_origin_frame_", |
95 |
| - "fusion_map_length_x", |
96 |
| - "fusion_map_length_y", |
97 |
| - "fusion_map_resolution" |
98 |
| - ] |
| 104 | + "$ref": "#/definitions/synchronized_grid_map_fusion" |
99 | 105 | }
|
100 | 106 | },
|
101 |
| - "required": ["ros__parameters"] |
| 107 | + "required": ["ros__parameters"], |
| 108 | + "additionalProperties": false |
102 | 109 | }
|
103 | 110 | },
|
104 |
| - "required": ["/**"] |
| 111 | + "required": ["/**"], |
| 112 | + "additionalProperties": false |
105 | 113 | }
|
0 commit comments