Manual Feature Engineering with 3D Motion Capture Data

compareStepLength

This script was created as helper to merge the data from the experiments with the computed data from calcStepLength. Therefore a new csv table is created and a barplot diagram. Some example outputs are shown below.

Usage and argument information for R/compareStepLength:

Usage: R/compareStepLength 
	[-[-help|h]] 
	[-[-verbose|v]] 
	[-[-inputcomp|i] :character:] 
	[-[-inputexp|j] :character:] 
	[-[-outputdir|o] :character:] 
	[-[-stepscomp|m] :character:] 
	[-[-stepsexp|n] :character:] 
	[-[-colors|c] [:character:]] 
	[-[-format|f] [:character:]] 
	[-[-title|t] [:character:]]

Arguments without parameters:
  --help: show this information
  --verbose: activating informational output while parsing

Required arguments:
  --inputcomp: csv file with computed step lengths
  --inputexp: csv file with measured step lengths
  --outputdir: directory to save images
  --stepscomp: comma separated step numbers from computed steps (ranges like 1-5 are allowed!)
  --stepsexp: comma separated step numbers from measured steps (should align to stepscomp)

Optional arguments:
  --colors: comma separated list of colors for each segment
  --format: format for output, one of bmp, jpg, pdf [default], png, ps, wmf
  --title: one title for the diagrams
  --verbose: activating informational output while parsing

Example output of R/compareStepLength:

Comparison of experimental and computed data for Walk05

Original call: ./compareStepLength --inputcomp="online/images/diagrams/walk05/steplengths.csv" --inputexp="online/tables/experiment1/experiment1-walking-walk05.csv" --outputdir="online/images/diagrams/walk05/" --format="png" --title="walk05" --stepscomp="2-11" --stepsexp="2-11" --colors="blue, red, green, cyan, orange, darkblue, darkred"

Step Number Exp Step Number Comp Side Step Length Exp[cm] Step Length Comp[cm] Difference[cm] Accuracy on Photo
2 2 right 55 48.7 6.3 bad
3 3 left 59 54.12 4.88 extrapolated
4 4 right 60 60.98 0.98 extrapolated
5 5 left 70 60.99 9.01 good
6 6 right 73 60.49 12.51 good
7 7 left 67 60.09 6.91 good
8 8 right 65 57.8 7.2 bad
9 9 left 61 55.38 5.62 average
10 10 right 68 59.97 8.03 average
11 11 left 71 63.4 7.6 average
Compared steplengths from Walk05.

Comparison of experimental and computed data for Walk06

Original call: ./compareStepLength --inputcomp="online/images/diagrams/walk06/steplengths.csv" --inputexp="online/tables/experiment1/experiment1-walking-walk06.csv" --outputdir="online/images/diagrams/walk06/" --format="png" --title="walk06" --stepscomp="2-10" --stepsexp="2-10" --colors="blue, red, green, cyan, orange, darkblue, darkred"

Step Number Exp Step Number Comp Side Step Length Exp[cm] Step Length Comp[cm] Difference[cm] Accuracy on Photo
2 2 right 67 59.35 7.65 good
3 3 left 68.5 61.28 7.22 bad
4 4 right 75.5 67.73 7.77 average
5 5 left 81 72.24 8.76 average
6 6 right 81 71.75 9.25 good
7 7 left 80 71.07 8.93 bad
8 8 right 81 71.83 9.17 bad
9 9 left 79 71.22 7.78 average
10 10 right 61 56.23 4.77 average
Compared steplengths from Walk06.

Comparison of experimental and computed data for Walk07

Original call: ./compareStepLength --inputcomp="online/images/diagrams/walk07/steplengths.csv" --inputexp="online/tables/experiment1/experiment1-walking-walk07.csv" --outputdir="online/images/diagrams/walk07/" --format="png" --title="walk07" --stepscomp="2-11" --stepsexp="2-11" --colors="blue, red, green, cyan, orange, darkblue, darkred"

Step Number Exp Step Number Comp Side Step Length Exp[cm] Step Length Comp[cm] Difference[cm] Accuracy on Photo
2 2 right 67.5 60.8 6.7 good
3 3 left 69 61.63 7.37 good
4 4 right 74 64.99 9.01 good
5 5 left 73 64.06 8.94 good
6 6 right 69 60.91 8.09 good
7 7 left 73 63.76 9.24 good
8 8 right 70.5 62.66 7.84 good
9 9 left 63.5 57 6.5 good
10 10 right 67 58.34 8.66 good
11 11 left 66.5 57.57 8.93 good
Compared steplengths from Walk07.