(alg_name, execution_time,mesh=None)
| 196 | callback(polylidar_3d_alg_name, time_polylidar3D, mesh_3d_polylidar) |
| 197 | |
| 198 | def callback(alg_name, execution_time,mesh=None): |
| 199 | axis_frame = o3d.geometry.TriangleMesh.create_coordinate_frame(size=0.2) |
| 200 | axis_frame.translate([0, 0.8, -0.7]) |
| 201 | grid_ls = construct_grid(size=2, n=20, plane_offset=-0.8, translate=[0, 1.0, 0.0]) |
| 202 | logging.info("%s took (ms): %.2f", alg_name, execution_time) |
| 203 | if mesh: |
| 204 | if isinstance(mesh, list): |
| 205 | o3d.visualization.draw_geometries( |
| 206 | [*mesh, axis_frame], width=600, height=500) |
| 207 | else: |
| 208 | o3d.visualization.draw_geometries([mesh, axis_frame], width=600, height=500) |
| 209 | |
| 210 | def main(): |
| 211 | axis_frame = o3d.geometry.TriangleMesh.create_coordinate_frame(size=0.2) |
no test coverage detected