+ [ true = true ] + echo --sonar + python -m profile_alignment --result /working/result.json --sonar --write-shape /working/shape.json /working/92b66180-2105-451b-bb78-2b3e804298e2/processing/data/laser.ptd.dat fit 2026-08-04T00:06:01 - INFO: Profile Alignment 0.0.42 2026-08-04T00:06:01 - INFO: Alignment track will be output to /working/92b66180-2105-451b-bb78-2b3e804298e2/processing/data 2026-08-04T00:06:01 - INFO: The pipe shape track is not found in /working/92b66180-2105-451b-bb78-2b3e804298e2/processing/data/pipe_shape.track.json 2026-08-04T00:06:01 - INFO: Falling back to the 3 built-in reference shapes. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 2026-08-04T00:06:01 - INFO: Input: /working/92b66180-2105-451b-bb78-2b3e804298e2/processing/data/laser.ptd.dat 2026-08-04T00:06:01 - INFO: Sonar: True 2026-08-04T00:06:01 - INFO: Method: fit 2026-08-04T00:06:01 - 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:01 - INFO: Shape info: /working/shape.json =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 2026-08-04T00:06:01 - INFO: Track format: json Reading PTD file in binary format... Completed! =-=-=-=-=-Adding Sonar points -=-=-=-=-=-=- 2026-08-04T00:06:03 - INFO: Reading sonar track took 0.07648086547851562 sec! 2026-08-04T00:06:03 - INFO: Reading sonar alignment track took {0.0005669593811035156} 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: 90.43% shape 2 is /app/profile_alignment/ref_shapes/egg.shape.json: 78.79% shape 3 is /app/profile_alignment/ref_shapes/square.shape.json: 30.78% The shape %s is being selected! Loading ... /app/profile_alignment/ref_shapes/circle.shape.json =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 2026-08-04T00:06:25 - INFO: Reference shape is detected as CIRCLE, forcing rotation to zero 2026-08-04T00:06:25 - INFO: Calculating the size for all frames ... 2026-08-04T00:06:29 - INFO: 200 frames are processed in 4.66 seconds. rate: 42.88 fp/s 2026-08-04T00:06:29 - INFO: Median Scale of 200 frame found to be: 0.8927556035984932 2026-08-04T00:06:29 - INFO: The selected reference shape JSON to: {/working/shape.json} 2026-08-04T00:06:29 - INFO: Fit to reference shape ... 2026-08-04T00:06:41 - INFO: {1669} frames are processed in {11.57} seconds. Rate: 144.30 fp/s Track data saved to /working/92b66180-2105-451b-bb78-2b3e804298e2/processing/data/alignment.track.json Writing PTD file in binary format... Completed! PTD file is written to: /working/92b66180-2105-451b-bb78-2b3e804298e2/processing/data/laser_aligned.ptd.dat