+ [ true = true ] + echo --sonar + python -m profile_alignment --result /working/result.json --sonar --shape /working/shape.shape.json --write-shape /working/shape.json /working/bb03b2b9-f95c-4591-8074-9a7c0c28bba9/processing/data/laser.ptd.dat fit 2026-07-16T03:33:34 - INFO: Profile Alignment 0.0.39 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Reading PTD file in binary format... 2026-07-16T03:33:34 - INFO: Alignment track will be output to /working/bb03b2b9-f95c-4591-8074-9a7c0c28bba9/processing/data 2026-07-16T03:33:34 - INFO: Input: /working/bb03b2b9-f95c-4591-8074-9a7c0c28bba9/processing/data/laser.ptd.dat 2026-07-16T03:33:34 - INFO: Sonar: True 2026-07-16T03:33:34 - INFO: Method: fit 2026-07-16T03:33:34 - INFO: Shape: /working/shape.shape.json 2026-07-16T03:33:34 - INFO: Shape info: /working/shape.json 2026-07-16T03:33:34 - INFO: Track format: json Completed! =-=-=-=-=-Adding Sonar points -=-=-=-=-=-=- 2026-07-16T03:33:35 - INFO: Reading sonar track took 0.01509714126586914 sec! 2026-07-16T03:33:35 - INFO: Reading sonar alignment track took {0.0004839897155761719} sec! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 2026-07-16T03:33:35 - INFO: Reference shape is detected as CIRCLE, forcing rotation to zero 2026-07-16T03:33:35 - INFO: Calculating the size for all frames ... 2026-07-16T03:33:39 - INFO: 200 frames are processed in 3.92 seconds. rate: 51.07 fp/s 2026-07-16T03:33:39 - INFO: Median Scale of 200 frame found to be: 0.5298721207078259 2026-07-16T03:33:39 - INFO: The selected reference shape JSON to: {/working/shape.json} 2026-07-16T03:33:39 - INFO: Fit to reference shape ... Optimization failed for a frame: {ABNORMAL: } Optimization failed for a frame: {ABNORMAL: } Optimization failed for a frame: {ABNORMAL: } 2026-07-16T03:33:54 - INFO: {2268} frames are processed in {14.64} seconds. Rate: 154.91 fp/s Track data saved to /working/bb03b2b9-f95c-4591-8074-9a7c0c28bba9/processing/data/alignment.track.json Writing PTD file in binary format... Completed! PTD file is written to: /working/bb03b2b9-f95c-4591-8074-9a7c0c28bba9/processing/data/laser_aligned.ptd.dat