Perception
This module is still under development
detector
¤
Detector
¤
__init__(self, agent)
special
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/detector.py
8 9 10 |
|
run_step(self)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/detector.py
12 13 14 |
|
gpd_detector
¤
GroundPlaneDetector
¤
GROUND
¤
OBSTACLE
¤
SKY
¤
__init__(self, sky_level=0.9, t=0.05, del_ang=0.2, fit_type='exp', **kwargs)
special
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/gpd_detector.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|
convert_to_log(x)
staticmethod
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/gpd_detector.py
34 35 36 |
|
get_roll_stats(self, depth_image)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/gpd_detector.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
|
gpd_mesh(self, depth_image)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/gpd_detector.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|
img_to_world(self, depth_img, sky_level=0.2, depth_scaling_factor=1000)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/gpd_detector.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
|
output_gpd(self, d_frame)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/gpd_detector.py
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
|
reg_img_to_world(self, depth_img, sky_level=0.9, depth_scaling_factor=1000)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/gpd_detector.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|
roll_frame(self, depth_image, ang, rot_axis, no_axis=False)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/gpd_detector.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
|
run_step(self)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/gpd_detector.py
38 39 40 41 42 43 44 45 |
|
ground_plane_detector
¤
SemanticSegmentationDetector
¤
__init__(self, vehicle, camera, sky_line_level=310, max_detectable_distance_threshold=0.08, min_caliberation_boundary=0.01)
special
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
construct_f(self, a, b, c, p, q)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
139 140 141 142 143 144 |
|
F1(self, SS_k, y_k)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
124 125 |
|
F2(self, S_k, y_k)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
127 128 |
|
F3(self, x_k, y_k)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
130 131 |
|
F4(self, x_k, y_k)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
133 134 |
|
F5(self, y_k)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
136 137 |
|
fit(self, x, y)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
|
recalibrate(self, sky_line_level=310, max_detectable_distance_threshold=0.089, min_caliberation_boundary=0.01)
¤
Force a recalibration of the ground plane prediction matrix
Returns:
Type | Description |
---|---|
|
None |
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
run_step(self, vehicle, new_data)
¤
This function assumes that the function calling it will set the variable self.curr_depth_img In the first run of this function, it will remember the input depth image as self._test_depth_img In the second run of this function, it will calculate the prediction matrix In the preceding runs, it will use the prediction matrix to find ground plane
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vehicle |
Vehicle |
current vehicle state |
required |
new_data |
<built-in function array> |
current frame for this detector |
required |
Returns:
Type | Description |
---|---|
|
None |
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
|
S(self, x, y)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
110 111 112 113 114 115 |
|
Sk(self, S_k_1, y_k, y_k_1, x_k, x_k_1)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
104 105 |
|
SS(self, s, x)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
117 118 119 120 121 122 |
|
SSk(self, SS_k_1, S_k, S_k_1, x_k, x_k_1)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/ground_plane_detector.py
107 108 |
|
point_cloud_detector
¤
PointCloudDetector
¤
__init__(self, max_detectable_distance=0.1, depth_scaling_factor=1000, **kwargs)
special
¤
Parameters:
Name | Type | Description | Default |
---|---|---|---|
max_detectable_distance |
|
maximum detectable distance in km |
0.1 |
depth_scaling_factor |
|
scaling depth back to world scale. 1000 m = 1 km |
1000 |
**kwargs |
|
{} |
Source code in ROAR_simulation/roar_autonomous_system/perception_module/point_cloud_detector.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
calculate_world_cords(self, max_points_to_convert=5000)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/point_cloud_detector.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
|
run_step(self)
¤
Source code in ROAR_simulation/roar_autonomous_system/perception_module/point_cloud_detector.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|