+ [ true = true ] + echo --sonar + python -m profile_alignment --result /working/result.json --sonar --write-shape /working/shape.json /working/f0a94e5e-9dbd-4428-877e-04c9a8542dc0/processing/data/laser.ptd.dat fit 2026-07-29T05:12:13 - INFO: Profile Alignment 0.0.42 2026-07-29T05:12:13 - INFO: Alignment track will be output to /working/f0a94e5e-9dbd-4428-877e-04c9a8542dc0/processing/data =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 2026-07-29T05:12:13 - INFO: Input: /working/f0a94e5e-9dbd-4428-877e-04c9a8542dc0/processing/data/laser.ptd.dat 2026-07-29T05:12:13 - INFO: Sonar: True 2026-07-29T05:12:13 - INFO: Method: fit 2026-07-29T05:12:13 - INFO: Shape: /app/profile_alignment/ref_shapes/circle.shape.json 2026-07-29T05:12:13 - INFO: Shape info: /working/shape.json =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 2026-07-29T05:12:13 - INFO: Track format: json Reading PTD file in binary format... Completed! =-=-=-=-=-Adding Sonar points -=-=-=-=-=-=- 2026-07-29T05:12:15 - INFO: Reading sonar track took 0.08558869361877441 sec! 2026-07-29T05:12:15 - INFO: Reading sonar alignment track took {0.0005767345428466797} sec! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 2026-07-29T05:12:15 - INFO: Reference shape is detected as CIRCLE, forcing rotation to zero 2026-07-29T05:12:15 - INFO: Calculating the size for all frames ... 2026-07-29T05:12:21 - INFO: 200 frames are processed in 5.65 seconds. rate: 35.42 fp/s 2026-07-29T05:12:21 - INFO: Median Scale of 200 frame found to be: 0.5309168385126275 2026-07-29T05:12:21 - INFO: The selected reference shape JSON to: {/working/shape.json} 2026-07-29T05:12:21 - INFO: Fit to reference shape ... Optimization failed for a frame: {ABNORMAL: } 2026-07-29T05:12:54 - INFO: {3664} frames are processed in {33.21} seconds. Rate: 110.32 fp/s Track data saved to /working/f0a94e5e-9dbd-4428-877e-04c9a8542dc0/processing/data/alignment.track.json Writing PTD file in binary format... Completed! PTD file is written to: /working/f0a94e5e-9dbd-4428-877e-04c9a8542dc0/processing/data/laser_aligned.ptd.dat