+ [ true = true ] + echo --sonar + python -m profile_alignment --result /working/result.json --sonar --write-shape /working/shape.json /working/1d08ce56-a9c5-40de-84a7-96ea191cb38f/processing/data/laser.ptd.dat fit 2026-08-04T00:06:34 - INFO: Profile Alignment 0.0.42 2026-08-04T00:06:34 - INFO: Alignment track will be output to /working/1d08ce56-a9c5-40de-84a7-96ea191cb38f/processing/data 2026-08-04T00:06:34 - INFO: The pipe shape track is not found in /working/1d08ce56-a9c5-40de-84a7-96ea191cb38f/processing/data/pipe_shape.track.json 2026-08-04T00:06:34 - INFO: Falling back to the 3 built-in reference shapes. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 2026-08-04T00:06:34 - INFO: Input: /working/1d08ce56-a9c5-40de-84a7-96ea191cb38f/processing/data/laser.ptd.dat 2026-08-04T00:06:34 - INFO: Sonar: True 2026-08-04T00:06:34 - INFO: Method: fit 2026-08-04T00:06:34 - 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:06:34 - INFO: Shape info: /working/shape.json =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 2026-08-04T00:06:34 - INFO: Track format: json Reading PTD file in binary format... Completed! =-=-=-=-=-Adding Sonar points -=-=-=-=-=-=- 2026-08-04T00:06:36 - INFO: Reading sonar track took 0.09182596206665039 sec! 2026-08-04T00:06:36 - INFO: Reading sonar alignment track took {0.0007712841033935547} 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: 76.63% shape 2 is /app/profile_alignment/ref_shapes/egg.shape.json: 75.86% shape 3 is /app/profile_alignment/ref_shapes/square.shape.json: 47.51% The shape %s is being selected! Loading ... /app/profile_alignment/ref_shapes/circle.shape.json =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 2026-08-04T00:06:57 - INFO: Reference shape is detected as CIRCLE, forcing rotation to zero 2026-08-04T00:06:57 - INFO: Calculating the size for all frames ... 2026-08-04T00:07:02 - INFO: 200 frames are processed in 4.32 seconds. rate: 46.29 fp/s 2026-08-04T00:07:02 - INFO: Median Scale of 200 frame found to be: 0.898128055179127 2026-08-04T00:07:02 - INFO: The selected reference shape JSON to: {/working/shape.json} 2026-08-04T00:07:02 - INFO: Fit to reference shape ... Optimization failed for a frame: {ABNORMAL: } Optimization failed for a frame: {ABNORMAL: } Optimization failed for a frame: {ABNORMAL: } 2026-08-04T00:07:27 - INFO: {3246} frames are processed in {24.88} seconds. Rate: 130.49 fp/s Track data saved to /working/1d08ce56-a9c5-40de-84a7-96ea191cb38f/processing/data/alignment.track.json Writing PTD file in binary format... Completed! PTD file is written to: /working/1d08ce56-a9c5-40de-84a7-96ea191cb38f/processing/data/laser_aligned.ptd.dat