Calibration fails w...
 
Notifications
Clear all

[Solved] Calibration fails with Fabscan 2020-06-29

20 Posts
6 Users
0 Reactions
2,209 Views
Adam
Posts: 15
 Adam
Topic starter
(@adam)
Active Member
Joined: 5 years ago

I keep getting like:

2020-07-01 17:14:55,276 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration: Laser calibration 0

2020-07-01 17:14:55,277 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Distance: 42.27911237196088

2020-07-01 17:14:55,279 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Normal: [-0.91542817 -0.00106376  0.40247997]

2020-07-01 17:14:55,280 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Standard deviation: 4.87229466372726e-15

2020-07-01 17:14:55,280 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Point cloud size: 517

2020-07-01 17:14:55,463 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration: Platform calibration 

2020-07-01 17:14:55,468 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Center Point: [ -2.18673222  13.93603993 148.78706408]

2020-07-01 17:14:55,471 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Translation: [ -1.91526578  51.13503054 148.74960051]

2020-07-01 17:14:55,476 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Rotation: [[ 0.00000000e+00  9.99973373e-01 -7.29748500e-03] [-1.00711216e-03 -7.29748130e-03 -9.99972866e-01] [-9.99999493e-01  7.34938592e-06  1.00708535e-03]]

2020-07-01 17:14:55,478 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Normal: [-0.00729749 -0.99997287  0.00100709]

2020-07-01 17:14:55,481 [519:1202078816] DEBUG - fabscan.scanner.laserscanner.FSCalibration: Calibration Error

2020-07-01 17:14:55,482 [519:1202078816] ERROR - fabscan.scanner.laserscanner.FSCalibration: '<' not supported between instances of 'NoneType' and 'float'

 

Note that this is what I found in the logfile.

On the screen nothing indicates failure, it just told me 'Calibration Finished'

Reply
19 Replies
mario
Posts: 570
Admin
(@mario)
Honorable Member
Joined: 6 years ago

Thanks for reporting. Are you able to perform a scan after calibration?

Reply
Adam
 Adam
(@adam)
Joined: 5 years ago

Active Member
Posts: 15

@mario

No, I cannot make a scan because it tells me the Calibration had failed

Reply
Veneficus
Posts: 20
(@veneficus)
Eminent Member
Joined: 4 years ago

No, unfortantly no scanning possible. this is the same issue I mentioned in the German part of the Forum.

Reply
mario
Posts: 570
Admin
(@mario)
Honorable Member
Joined: 6 years ago
Posted by: @veneficus

No, unfortantly no scanning possible. this is the same issue I mentioned in the German part of the Forum.

Sorry for my misunderstanding. I thought that you are able to scan and you just reported this as an issue which happens at the end of the calibration process. I will have a closer look. But i need to know how to reproduce this error. What exactly happens when you've started the scan process. 

Posted by: @adam

On the screen nothing indicates failure, it just told me 'Calibration Finished'

It is stange that the calibration process is finished.

Posted by: @adam

2020-07-01 17:14:55,277 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Distance: 42.27911237196088

2020-07-01 17:14:55,279 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Normal: [-0.91542817 -0.00106376  0.40247997]

2020-07-01 17:14:55,280 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Standard deviation: 4.87229466372726e-15

2020-07-01 17:14:55,280 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Point cloud size: 517

2020-07-01 17:14:55,463 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration: Platform calibration 

2020-07-01 17:14:55,468 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Center Point: [ -2.18673222  13.93603993 148.78706408]

2020-07-01 17:14:55,471 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Translation: [ -1.91526578  51.13503054 148.74960051]

2020-07-01 17:14:55,476 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Rotation: [[ 0.00000000e+00  9.99973373e-01 -7.29748500e-03] [-1.00711216e-03 -7.29748130e-03 -9.99972866e-01] [-9.99999493e-01  7.34938592e-06  1.00708535e-03]]

2020-07-01 17:14:55,478 [519:1202078816] INFO - fabscan.scanner.laserscanner.FSCalibration:  Normal: [-0.00729749 -0.99997287  0.00100709]

The calibration values also look reasonable.  I guess you are using only one laser, right? How does your calibration pattern look like? Can you share a picture?

 

Reply
Adam
 Adam
(@adam)
Joined: 5 years ago

Active Member
Posts: 15

@mario

Yes, one laser.

Also, I use the standard calibration pattern. I did a calibartion 3 times, after each new release, all went well, except for the one of the latest fabscan-image.

Reply
leonnoel
Posts: 59
(@leonnoel)
Trusted Member
Joined: 5 years ago

I have just checked the new software dated 06-29-2020.  After doing a update and upgrade I am able to calibrate and run a scan.  The calibration sequence is different than before and the switching of the lasers and scan is much faster than before.  There is a lag in the presentation of the scan on the screen after the lasers stop.  I have not been able to complete the meshing sequence.  The notification that meshing is started appears on the screen but there is no completion. No meshed file is recorded to the respective scan folder on the micro sd card.  I can't load the point cloud files into either Meshlab or CloudCompare indicating there may be a format problem but I haven't detected it when looking at the ply file using Notepad++.  

Reply
Adam
 Adam
(@adam)
Joined: 5 years ago

Active Member
Posts: 15
Posted by: @leonnoel

I have just checked the new software dated 06-29-2020.  After doing a update and upgrade I am able to calibrate and run a scan.  

Not here... update and upgrade did not solve the problem.

Reply
mario
Posts: 570
Admin
(@mario)
Honorable Member
Joined: 6 years ago
Posted by: @leonnoel

I have not been able to complete the meshing sequence. 

Thanks for reporting. Meshing should be deactivated in 0.9.0 by default, cause the meshlab integration made a lot of trouble since they updated meshlab on the pi. I am working on a better solution for meshing, but i need to get the scanner itself stable before i think about a better meshing solution. You should use MeshLab or Cloudcompare instead for meshing. I am already working on a bugfix release 0.9.1 were i will prove that meshing is removed. I will also try to fix those calibration errors. But i need to be able to reproduce this behaviour on one of my scanners. I think i need to do more testing on the machine with only one laser. My mostly used scanner has two lasers. 

Reply
Veneficus
Posts: 20
(@veneficus)
Eminent Member
Joined: 4 years ago

I solved the issue with the calibration for me by the folowing steps (I dont know which one helped):

1. edit the config.json again. The Square size etc. was resetted.

2. adjusting the position of the Calibration Stand (reprinted it because my first was without adjusting holes)

3. Glued the Pattern again, that the Pattern is nearly 100% flat.

4. turned on the Second Laser (which I have some Problems at the end result but this I will first investigate a bit more first, maybe that can be solved by settings)

 

Reply
mario
Admin
(@mario)
Joined: 6 years ago

Honorable Member
Posts: 570

@veneficus thank you for the investigations. I will try some of your suggestions.

Reply
leonnoel
(@leonnoel)
Joined: 5 years ago

Trusted Member
Posts: 59

@mario To continue- I have edited the point cloud file in Notepad++  by changing the 6th line in the header files from "element vertex (0)' to "element vertex xxxxx".  xxxx is the total lines in the file -15 (the header line) which gives the total number of points in the point cloud.  The point  cloud will load in both CloudCompare and the present Meshcloud.  This is consisten with the point cloud files of version 0.8.2. If I were only an expert in the usage of the two programs I think that I could have a decent mesh file.

The scan at full definition - 64399 vertical scans for two lasers and a 200 step stepper motor take about 40 minutes with version 0.9.0 which is about 4.5 time faster than version 0.8.2. I like this version.

Reply
Adam
 Adam
(@adam)
Joined: 5 years ago

Active Member
Posts: 15
Posted by: @leonnoel

@mario To continue- I have edited the point cloud file in Notepad++  by changing the 6th line in the header files from "element vertex (0)' to "element vertex xxxxx".  xxxx is the total lines in the file -15 (the header line) which gives the total number of points in the point cloud.

I could have tried this too if only I knew where the file to be edited was...

Reply
Micha_AC
Posts: 41
(@micha_ac)
Trusted Member
Joined: 5 years ago

Same here. Got 2020-06-29 installed. Looks like calibration works fine. But when I would like to start a test-scan I get the message calibration failed.
Have had the same issue with the resettet config-file. Had to change it to 3200 steps several times!

The wifi-config-file even disappears completly after reboot.

 

//edit:  Additionally I'd like to say it's annoying the messages disappear so fast. On the main screen I wouldn't care if they keep in a message box permanently...

When will the platform rotary-steps, and the wifi settings be added to the frontend? Shouldn't bee too much work... But entering ti using ssh always requires to google where to edit which file when I re-try the fabscan once a year...

Reply
mario
Posts: 570
Admin
(@mario)
Honorable Member
Joined: 6 years ago
Posted by: @micha_ac

//edit:  Additionally I'd like to say it's annoying the messages disappear so fast. On the main screen I wouldn't care if they keep in a message box permanently...

Thank you for the suggestion. I will see what i can do about that.

Posted by: @micha_ac

Same here. Got 2020-06-29 installed. Looks like calibration works fine. But when I would like to start a test-scan I get the message calibration failed.
Have had the same issue with the resettet config-file. Had to change it to 3200 steps several times!

Does scanning work after you changed the config values or not?

Posted by: @micha_ac

The wifi-config-file even disappears completly after reboot.

Please avoid double postings. You already asked that in 

https://fabscan.org/community/latest-release/how-to-setup-wifi/paged/2/#post-1529

and i just answered to it.

Posted by: @micha_ac

When will the platform rotary-steps, and the wifi settings be added to the frontend? Shouldn't bee too much work... But entering ti using ssh always requires to google where to edit which file when I re-try the fabscan once a year...

Yes of course it should't be too much work.  But i don't want to invest more effort in an old user interface with bad code and old libraries. We are already rewriting the whole thing. Editing the config via the user interface is already on the todo list for the new UI. If you or anybody else is able to do it you are welcome to submit a pull request. Code needs to be changed for the frontend

https://github.com/mariolukas/FabScanPi-Frontend

and some parts in the backend

https://github.com/mariolukas/FabScanPi-Server

 

Reply
mario
Posts: 570
Admin
(@mario)
Honorable Member
Joined: 6 years ago

Good news, i was able to reproduce the error. I am working on a fix right now. But i think i need to run it a couple of times by using a debugger. I will keep you up to date.

Reply
mario
Posts: 570
Admin
(@mario)
Honorable Member
Joined: 6 years ago

Bug fix version 0.9.1 is available now!

https://fabscan.org/community/general/new-release-v-0-9-1/

Reply
Adam
Posts: 15
 Adam
Topic starter
(@adam)
Active Member
Joined: 5 years ago

@Mario

I just installed the fixes that gave me version 0.9.3+202007072202 and indeed I have been able to run the calibration-process.

Now doing just another scan, which seems to work well.

Also, thanks for supporting 2 lasers now, I just ordered 2 of those...

Reply
Adam
Posts: 15
 Adam
Topic starter
(@adam)
Active Member
Joined: 5 years ago

Little bit off-topic but any idea why I do not show a mesh-filter (see picture)?

Also, 'download' has been misspelled...

Screen Shot 2020 07 11 at 18.11.34

 

Reply
Danilo0702
Posts: 394
(@danilo0702)
Reputable Member
Joined: 6 years ago

the Meshfilter dont works in the release. You will use the extern Meshlab program from http://www.meshlab.net/#download

Reply
Share: