StaticTrajectoriesReconstruction.scilab File Reference

Compute the reconstruction 3D from measures given by the user. More...


Functions

 comrec (:)']
 CreateVRMLWithMarkers (1e-2, QREC, HAnimJointsNames, 'Human36', 'High',... 'RecTrajWithLeds.wrl', TOBS, HAnimMarkersNames, HAnimMarkersRGB)
 exec ('../../../KickStart.sci')
 execstr (LoadModule('.'))
 execstr (LoadModule('../KinematicModel/Human36'))
 execstr (LoadModule('../../../LagrangianModel/Human36'))
 execstr (LoadModule('../../../Kernel/OptimizationTools'))
 printf ('\nSaving results done...\n')
 printf ('\nSaving results...\n')
 printf ('\nReconstruction done...\n')
 printf ('\nStarting Reconstruction...\n')
 printf ('\nLoading file done...\n')
 printf ('\nConsidered Subject:%s\n', Subject)
 save ('Measures/ResultsMeasures/'+FilePath+'RecPosBin'+FileNumber, QREC)
 SetAnatomicalLengths (GLOB_AnatLengths)
 SetTag2JointLengths (GLOB_Tag2JointLengths)
if size (filenames, 1)
 tags (:)']
 tic ()
 timer ()
 VisuTagsComparison (QREC, TOBS, TUTILISES)
 WriteInCsvFile ('Measures/ResultsMeasures/'+FilePath+... 'COMPos'+FileNumber+'.csv', COMREC, COMRECText, VText)
 WriteInCsvFile ('Measures/ResultsMeasures/'+FilePath+... 'TagPos'+FileNumber+'.csv', TAGS, TAGSText, VText)
 WriteInCsvFile ('Measures/ResultsMeasures/'+FilePath+... 'RecPos'+FileNumber+'.csv', QREC', QRECText, VText)

Variables

 COMREC = [COMREC
 COMREC = []
 COMRECText = []
 end
 end
 end
 end
 end
 end
 end
 end
clear Files1 Files2 Files3
Files4 
end
 filenames = [Files1
if filenames
 filenames = GLOB_Filenames
 FileNumber
 FilePath
 Files2
 Files2 = sort(listfiles(getcwd()+'Measures/JXC-P+/'+Subject+'/*.csv'))
 Files3
 Files3 = sort(listfiles(getcwd()+'Measures/JXC+P-/'+Subject+'/*.csv'))
 Files4
 Files4 = sort(listfiles(getcwd()+'Measures/JXC+P+/'+Subject+'/*.csv'))
global GLOB_AnatLengths
global GLOB_Filenames
global GLOB_Markers
global GLOB_Subject
global GLOB_Tag2JointLengths
for i
for i
for i
for i
for i
for i
for j
 Markers = GLOB_Markers
 nb_iter = 100
 Nsamplings = size(TOBS, 2)/3
 NTAGS_INIT = 28
 q_init = (Minq1 + Maxq1)/2
 QREC = Reconstruction(q_init, Tobs, Tutilises, nb_iter, seuil) [QREC, qrec]
 QREC = []
global QREC
 QRECText = []
 seuil = 0.0000001
 Subject = GLOB_Subject
 TAGS = [TAGS
 TAGS = []
 TAGSText = []
 Tobs = Tobs(Tutilises, :)
 Tutilises = 1:NTAGS_INIT
 Tutilises = Tutilises(TUTILISES(:, i))
 Tutilises = 1:NTAGS_INIT
 VText = [VText, string(i)]
 VText = ["Sample"]


Detailed Description

Compute the reconstruction 3D from measures given by the user.

Author:
Florence Billet
Affiliation(s): INRIA, team BIPOP

Email(s): Florence.Billet@inria.fr


Function Documentation

comrec (  ) 

CreateVRMLWithMarkers ( 1e-  2,
QREC  ,
HAnimJointsNames  ,
'Human36'  ,
'High'  ,
... 'RecTrajWithLeds.wrl'  ,
TOBS  ,
HAnimMarkersNames  ,
HAnimMarkersRGB   
)

exec ( '../../../KickStart.sci  ) 

execstr ( LoadModule('.')   ) 

execstr ( LoadModule('../KinematicModel/Human36')   ) 

execstr ( LoadModule('../../../LagrangianModel/Human36')   ) 

execstr ( LoadModule('../../../Kernel/OptimizationTools')   ) 

printf ( '\nSaving results done...\n'   ) 

printf ( '\nSaving results...\n'   ) 

printf ( '\nReconstruction done...\n'   ) 

printf ( '\nStarting Reconstruction...\n'   ) 

printf ( '\nLoading file done...\n'   ) 

printf ( '\nConsidered Subject:%s\n'  ,
Subject   
)

save ( 'Measures/ResultsMeasures/'+FilePath+'RecPosBin'+  FileNumber,
QREC   
)

SetAnatomicalLengths ( GLOB_AnatLengths   ) 

SetTag2JointLengths ( GLOB_Tag2JointLengths   ) 

if size ( filenames  ,
 
)

tags (  ) 

tic (  ) 

timer (  ) 

VisuTagsComparison ( QREC  ,
TOBS  ,
TUTILISES   
)

WriteInCsvFile ( 'Measures/ResultsMeasures/'+FilePath+... 'COMPos'+FileNumber+'.csv'  ,
COMREC  ,
COMRECText  ,
VText   
)

WriteInCsvFile ( 'Measures/ResultsMeasures/'+FilePath+... 'TagPos'+FileNumber+'.csv'  ,
TAGS  ,
TAGSText  ,
VText   
)

WriteInCsvFile ( 'Measures/ResultsMeasures/'+FilePath+... 'RecPos'+FileNumber+'.csv'  ,
QREC ,
QRECText  ,
VText   
)


Variable Documentation

COMREC = [COMREC

COMREC = []

COMRECText = []

end

end

end

end

end

end

end

end

clear Files1 Files2 Files3 Files4 end

filenames = [Files1

if filenames

Initial value:

= [] then
  
Files1 = sort(listfiles(getcwd()+'Measures/JXC-P-/'+Subject+'/*.csv'))

filenames = GLOB_Filenames

FileNumber

Initial value:

 part(filenames(j), ...
                  (length(filenames(j)) - 6):(length(filenames(j))-4))

FilePath

Initial value:

 part(filenames(j), ...
                  (length(filenames(j)) - 32):(length(filenames(j))-16))

Files2

Files2 = sort(listfiles(getcwd()+'Measures/JXC-P+/'+Subject+'/*.csv'))

Files3

Files3 = sort(listfiles(getcwd()+'Measures/JXC+P-/'+Subject+'/*.csv'))

Files4

Files4 = sort(listfiles(getcwd()+'Measures/JXC+P+/'+Subject+'/*.csv'))

global GLOB_AnatLengths

global GLOB_Filenames

global GLOB_Markers

global GLOB_Subject

global GLOB_Tag2JointLengths

for i

Initial value:

1:size(COMREC, 2)/3
    COMRECText = [COMRECText, "COM_X"+string(i), ...
                  "COM_Y"+string(i), "COM_Z"+string(i)]

for i

Initial value:

1:size(QREC, 2)
    comrec = COM(QREC(:, i))'

for i

Initial value:

1:size(QREC, 1)
    QRECText = [QRECText, "QREC"+string(i)]

for i

Initial value:

1:NTAGS_INIT
    TAGSText = [TAGSText, "X"+string(i), "Y"+string(i), "Z"+string(i)]

for i

Initial value:

1:size(QREC, 2)
    tags = Tags(QREC(:, i))'

for i

Initial value:

 1:Nsamplings

    Tobs = TOBS(:, [2*i + (i-2):3*i])

for j

Initial value:

 1:size(filenames, 1)

  printf('\nLoading %s file (it takes a while)...\n', filenames(j))

Markers = GLOB_Markers

nb_iter = 100

Nsamplings = size(TOBS, 2)/3

NTAGS_INIT = 28

q_init = (Minq1 + Maxq1)/2

QREC = Reconstruction(q_init, Tobs, Tutilises, nb_iter, seuil) [QREC, qrec]

QREC = []

global QREC

QRECText = []

seuil = 0.0000001

Subject = GLOB_Subject

TAGS = [TAGS

TAGS = []

TAGSText = []

Tobs = Tobs(Tutilises, :)

Tutilises = 1:NTAGS_INIT

Tutilises = Tutilises(TUTILISES(:, i))

Tutilises = 1:NTAGS_INIT

VText = [VText, string(i)]

VText = ["Sample"]

HuMAnS

humans-users@inrialpes.fr


Generated on Tue Mar 6 14:12:06 2007 for HuMAnS by doxygen 1.4.7