+ [ true = true ] + echo --sonar + python -m profile_alignment --result /working/result.json --sonar --write-shape /working/shape.json /working/7e48d389-9d49-4297-96b6-98f7643c6d34/processing/data/laser.ptd.dat fit 2026-08-04T00:05:53 - INFO: Profile Alignment 0.0.42 2026-08-04T00:05:53 - INFO: Alignment track will be output to /working/7e48d389-9d49-4297-96b6-98f7643c6d34/processing/data 2026-08-04T00:05:53 - INFO: The pipe shape track is not found in /working/7e48d389-9d49-4297-96b6-98f7643c6d34/processing/data/pipe_shape.track.json 2026-08-04T00:05:53 - INFO: Falling back to the 3 built-in reference shapes. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 2026-08-04T00:05:53 - INFO: Input: /working/7e48d389-9d49-4297-96b6-98f7643c6d34/processing/data/laser.ptd.dat 2026-08-04T00:05:53 - INFO: Sonar: True 2026-08-04T00:05:53 - INFO: Method: fit 2026-08-04T00:05:53 - INFO: Shape: [PosixPath('/app/profile_alignment/ref_shapes/circle.shape.json'), PosixPath('/app/profile_alignment/ref_shapes/egg.shape.json'), PosixPath('/app/profile_alignment/ref_shapes/square.shape.json')] 2026-08-04T00:05:53 - INFO: Shape info: /working/shape.json =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 2026-08-04T00:05:53 - INFO: Track format: json Reading PTD file in binary format... Completed! =-=-=-=-=-Adding Sonar points -=-=-=-=-=-=- 2026-08-04T00:05:53 - INFO: Reading sonar track took 0.04594135284423828 sec! 2026-08-04T00:05:53 - INFO: Reading sonar alignment track took {0.006169557571411133} sec! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Testing {%s} reference shapes to find the best match ... 3 0%| | 0/3 [00:00 Match Report: shape 1 is /app/profile_alignment/ref_shapes/circle.shape.json: 96.46% shape 2 is /app/profile_alignment/ref_shapes/egg.shape.json: 84.71% shape 3 is /app/profile_alignment/ref_shapes/square.shape.json: 18.83% The shape %s is being selected! Loading ... /app/profile_alignment/ref_shapes/circle.shape.json =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 2026-08-04T00:06:16 - INFO: Reference shape is detected as CIRCLE, forcing rotation to zero 2026-08-04T00:06:16 - INFO: Calculating the size for all frames ... 2026-08-04T00:06:20 - INFO: 200 frames are processed in 4.17 seconds. rate: 47.99 fp/s 2026-08-04T00:06:20 - INFO: Median Scale of 200 frame found to be: 0.8915716769427973 2026-08-04T00:06:20 - INFO: The selected reference shape JSON to: {/working/shape.json} 2026-08-04T00:06:20 - INFO: Fit to reference shape ... 2026-08-04T00:06:24 - INFO: {763} frames are processed in {4.18} seconds. Rate: 182.39 fp/s Track data saved to /working/7e48d389-9d49-4297-96b6-98f7643c6d34/processing/data/alignment.track.json Writing PTD file in binary format... Completed! PTD file is written to: /working/7e48d389-9d49-4297-96b6-98f7643c6d34/processing/data/laser_aligned.ptd.dat