| | 159 | 5. Generate and Visualize the Coverage Map: |
| | 160 | |
| | 161 | {{{ |
| | 162 | #!python |
| | 163 | rm_solver = RadioMapSolver() |
| | 164 | |
| | 165 | |
| | 166 | # Create a measurement surface by cloning the terrain |
| | 167 | # and elevating it by 1.5 meters |
| | 168 | measurement_surface = scene.objects["ground"].clone(as_mesh=True) |
| | 169 | transform_mesh(measurement_surface, |
| | 170 | translation=[0,0,1.5]) |
| | 171 | |
| | 172 | rm = rm_solver(scene, |
| | 173 | max_depth=5, |
| | 174 | los=True, |
| | 175 | refraction=False, |
| | 176 | cell_size=(2., 2.), |
| | 177 | size=[512, 512], # Size of the radio map in meters. The number of cells in the x and y directions should be [size/cell_size] |
| | 178 | # orientation=[0, 0, 0], # Orientation of the radio map plane |
| | 179 | measurement_surface=measurement_surface, # TO BE UDPATED |
| | 180 | # center=[0, 0, 1.5], # Center of the radio map measurement plane |
| | 181 | precoding_vec=None, |
| | 182 | samples_per_tx=int(1e8) |
| | 183 | ) |
| | 184 | |
| | 185 | scene.preview(radio_map=rm, rm_db_scale=True, rm_metric="path_gain"); |
| | 186 | }}} |
| | 187 | |