Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On processes.cpp, just a simple issue of slash and blank spaces characters in software path. #36

Open
touchhope opened this issue Feb 13, 2016 · 0 comments

Comments

@touchhope
Copy link

Since many Lai's code regular updates, we're getting that error message when trying to run the compiled build after copying under the software path provided by Ractiv's installer for v0.55b : "C:\Program Files (x86)\Ractiv\Touch+ Software" :

"settings file loaded
Error : non valid argument or option - « Files ».
Enter "TASKLIST /?" to show the syntax."

I have just only understand what was going wrong in the code : here on "C:\touch_plus_source_code\track_plus_core\daemon_plus\processes.cpp" :

ifdef _WIN32

//string command = "tasklist > " + processes_temp_path + "/processes_" + module_name;

string mypath = processes_temp_path + "\processes_" + module_name;
cout << mypath << endl;
string command = "tasklist > " + mypath;
cout << command << endl;

Well, it seems it's just a simple issue of blank spaces characters in software path and double antislash instead of slash for windows.

So in that state after modifying few lines in processes.cpp, it now can run C:\touch_plus_source_code\build\ (a path without blank spaces).

But it's necessary to copy the turbojpeg.dll file
https://www.dropbox.com/s/an8zy664rtuyaz4/turbojpeg.dll?dl=0
in build folder before trying to run the project after compiling under VS Community 2015.

With that running configuration, track_plus.exe seems to get very stable this time (absolutely no crash on my computer).

Then we get 6 little windows after wriggling fingers :

image_labeled_asdlkfjh0
hand has two red fingers, two green fingers and palm is grey, little circles drawing each fingerprints

image_labeled_asdlkfjh1
hand has two red fingers, two green fingers and palm is grey, little circles drawing each fingerprints

image_visualizationadfasdfdff0
hands on black screen with vertical and horizontal lines

image_subtractionsdfsdfsdfsaddddf0
white hands on black screen more like 3D vision

image_visualizationadfasdfdfdfsff0
white hands on grey keyboard background

image_small1
white hands on violet keyboard background

but still no main pointing circle as seen on first v0.55b on Alexandru Bauer last summer !

Here's what's appearing in the console while running the last regular update after modified on processses.cpp :

C:\touch_plus_source_code\build\processes\processes_track_plus
tasklist > C:\touch_plus_source_code\build\processes\processes_track_plus
Touch+ Camera:vid_1e4e pid_0107
Touch+ Camera found
camera opened = 1
settings file loaded
on first frame
serial number: 0101007491
unblock
C:\touch_plus_source_code\build\processes\processes_track_plus
tasklist > C:\touch_plus_source_code\build\processes\processes_track_plus
downloading 0.jpg
0.jpg download succeeded
downloading 1.jpg
1.jpg download succeeded
downloading stereoCalibData.txt
C:\touch_plus_source_code\build\processes\processes_track_plus
tasklist > C:\touch_plus_source_code\build\processes\processes_track_plus
stereoCalibData.txt download succeeded
computing rectification matrix 0
output file: C:\touch_plus_source_code\build\userdata\0101007491\rect0.txt
C:\touch_plus_source_code\build\processes\processes_track_plus
tasklist > C:\touch_plus_source_code\build\processes\processes_track_plus
computing rectification matrix 1
output file: C:\touch_plus_source_code\build\userdata\0101007491\rect1.txt
verifying data path integrity
succeeded 0
succeeded 1
succeeded 2
succeeded 3
succeeded 4
succeeded 5
lmmin start 17 -0.0625 102 27 => 8.8574512464
lmmin diag 17 -0.0625 102 27 => 38.937247358
o i lmpar prered ratio dirder delta pnorm fnorm p0 p1 p2 p3
0 0 7.5e-10 0.99 -136188 -0.99 3.894e+03 3.894e+03 3.257578520679308e+03 1350.89623 -9.37912809 -846073.533 1295.47822
0 1 9.8e-09 0.99 -1341.89 -0.99 3.894e+02 3.894e+02 3.234297096063896e+02 152.992915 -8.79677653 -83455.5088 156.868713
0 2 1.1e-07 0.99 -9.14679 -0.99 3.894e+01 3.910e+01 2.812345443854284e+01 31.9310619 -8.73832706 -6362.60825 41.7329552
0 3 0.75 0.47 -0.533259 0.023 3.894e+00 4.128e+00 9.895639494260942e+00 17.219583 -2.1818491 185.809731 27.2941152
0 4 16 0.07 1.20613 0.027 3.894e-01 3.942e-01 8.474394462928776e+00 16.9125343 -0.243465595 73.888238 26.9152316
1 0 3 0.071 0.999151 0.012 7.885e-01 8.084e-01 8.167136010881887e+00 16.798468 -0.453914014 69.1773574 26.8799825
2 0 1 0.085 1.03525 0.033 1.617e+00 1.621e+00 7.800304404582053e+00 16.8434865 -0.816411489 78.8717992 27.3255439
3 0 0.5 0.17 1.10073 0.072 3.242e+00 3.151e+00 7.021468914398151e+00 16.7437777 -1.47364135 93.821699 28.442294
4 0 0.25 0.41 1.14788 0.12 6.303e+00 5.898e+00 5.108576367012606e+00 15.8210873 -2.63903859 109.33949 30.7108406
5 0 0.0091 0.98 0.689894 -0.83 1.180e+01 1.183e+01 2.913732420989827e+00 12.6857568 -4.76178647 123.025422 35.5100193
6 0 0 0.94 0.992328 -0.94 1.180e+01 4.198e+00 7.431822867262537e-01 11.5896332 -3.89756675 119.762047 35.3019043
7 0 0 0.11 0.904534 -0.11 8.397e+00 2.837e+00 7.051821872474435e-01 10.8442948 -3.56552813 117.221326 36.8446364
8 0 0 0.011 0.999469 -0.011 5.674e+00 3.517e-01 7.011518348117394e-01 10.7594774 -3.5554181 116.899842 37.0814765
9 0 0 5e-06 1.04006 -5e-06 7.034e-01 1.130e-01 7.011500253813939e-01 10.7937891 -3.56917069 116.974485 37.0197881
10 0 0 1.2e-07 1.1806 -1.2e-07 2.260e-01 2.202e-02 7.011499742902622e-01 10.8013456 -3.57200733 116.984487 37.0083637
11 0 0 6.6e-09 1.28289 -6.6e-09 4.404e-02 7.173e-03 7.011499713402897e-01 10.8037166 -3.57290845 116.988223 37.0045488
12 0 0 5.4e-10 1.28086 -5.4e-10 1.435e-02 2.022e-03 7.011499710994058e-01 10.8043908 -3.57316295 116.98925 37.0034774
13 0 0 4.3e-11 1.30325 -4.3e-11 4.043e-03 5.704e-04 7.011499710799826e-01 10.8045809 -3.57323471 116.98954 37.0031751
14 0 0 3.7e-12 1.29113 -3.7e-12 1.141e-03 1.701e-04 7.011499710783136e-01 10.8046374 -3.57325608 116.989628 37.0030847
15 0 0 2.1e-13 1.68566 -2.1e-13 3.403e-04 3.441e-05 7.011499710781922e-01 10.8046494 -3.57326048 116.989643 37.0030669
16 0 0 1.5e-13 0.485264 -1.5e-13 6.881e-05 3.853e-05 7.011499710781660e-01 10.8046613 -3.57326521 116.989667 37.0030458
17 0 0 2.6e-15 2.47817 -2.6e-15 7.706e-05 9.574e-07 7.011499710781638e-01 10.8046618 -3.57326532 116.989666 37.0030456
18 0 0.00061 9.5e-15 1.00485 4.1e-15 1.915e-06 1.915e-06 7.011499710781605e-01 10.8046612 -3.57326509 116.989665 37.0030467
19 0 0 1.9e-15 -0.913541 -1.9e-15 3.830e-06 3.611e-06 7.011499710781610e-01 10.8046603 -3.57326467 116.989662 37.0030487
lmmin outcome (1) xnorm 73.6149 ftol 6.66134e-15 xtol 6.66134e-15
lmmin final 10.8046612 -3.57326509 116.989665 37.0030467 => 0.70114997108
a: 10.804661 b: -3.573265 c: 116.989665 d: 37.003047
C:\touch_plus_source_code\build\processes\processes_track_plus
tasklist > C:\touch_plus_source_code\build\processes\processes_track_plus
initializing camera
pose estimator initialized
setting exposure step 0 complete
setting exposure step 1 complete
gray_diff is 40.691284
r_val is 1.775587
exposure_val is 12.103956
C:\touch_plus_source_code\build\processes\processes_track_plus
tasklist > C:\touch_plus_source_code\build\processes\processes_track_plus
C:\touch_plus_source_code\build\processes\processes_track_plus
tasklist > C:\touch_plus_source_code\build\processes\processes_track_plus
C:\touch_plus_source_code\build\processes\processes_track_plus
tasklist > C:\touch_plus_source_code\build\processes\processes_track_plus
C:\touch_plus_source_code\build\processes\processes_track_plus
tasklist > C:\touch_plus_source_code\build\processes\processes_track_plus
readjusting exposure
initializing camera
setting exposure step 0 complete
setting exposure step 1 complete
gray_diff is 31.130821
r_val is 1.381542
exposure_val is 9.129589
C:\touch_plus_source_code\build\processes\processes_track_plus
tasklist > C:\touch_plus_source_code\build\processes\processes_track_plus
C:\touch_plus_source_code\build\processes\processes_track_plus
tasklist > C:\touch_plus_source_code\build\processes\processes_track_plus
C:\touch_plus_source_code\build\processes\processes_track_plus
tasklist > C:\touch_plus_source_code\build\processes\processes_track_plus
C:\touch_plus_source_code\build\processes\processes_track_plus
tasklist > C:\touch_plus_source_code\build\processes\processes_track_plus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant