forked from qualisys/Calqulus-Pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcycling.calqulus.yaml
2583 lines (2241 loc) · 51.9 KB
/
cycling.calqulus.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
############
## SPACES ##
############
#- space: VirtualLab
# alignWithSegment:
# segment: Hips
- parameter: seatTubeMoved
where:
name: Cycling*
steps:
- vector: [B_Seat_Tube.x, B_Seat_Tube.y, B_Stem.z]
- space: VirtualLab
origin: B_Stem?name=Cycling*
primaryAxis: [seatTubeMoved?name=Cycling*, B_Stem?name=Cycling*]
secondaryAxis: [[0,0,0], [0,0,1]]
order: yz
############
# Bike trials
############
# Bottom bracket
# midpoint of mean position of L_crank and mean position of R_crank
# B_Bottom_Bracket_proj is calculated as projection of
# mean((TARGET::ORIGINAL::L_crank + TARGET::ORIGINAL::R_crank) / 2)
# to plane created by B_Down_Tube+B_SEAT_TUBE+B_STEM
- parameter: Bottom_Bracket_proj
where:
name: Cycling*
steps:
- import: L_crank_filtered => L_spindle
- import: R_crank_filtered => R_spindle
- concatenate: [L_spindle, R_spindle]
- mean:
output: Bottom_Bracket_temp
- plane: [B_Stem, B_Seat_Tube, B_Down_Tube]
export: BikePlane
- project: [Bottom_Bracket_temp, $prev]
- import: $prev
space: VirtualLab
# Saddle height
# distance of Seat_Mid_Adj landmark to B_Bottom_Bracket_proj
# Seat_Mid_Adj landmark is calculated as B_seat_mid marker shifter vertically down by saddle marker radius
# TO DO!!! we will add settings to report center pipeline definition, until them we assume marker radius is 7 mm.
- parameter: Saddle_Height_mean
where:
name: Bike*
steps:
- import: B_Seat_Mid
space: VirtualLab
- subtract: [$prev, [0,0,7]] # TO DO: use user specified value when available
- mean:
- distance: [$prev, Bottom_Bracket_proj?name=Cycling*]
- convert:
from: mm
to: m
# Seat Fore/Aft position
# Vertical line from tip of saddle, to vertical line centered on bottom bracket. Neg = aft, Pos = fore
# Transform Seat_Front and Bottom_Bracket into the bike virtual lab to accommodate for bike direction
- parameter: Saddle_Fore_mean
where:
name: Bike*
steps:
- import: B_Seat_Front => tip
space: VirtualLab
- subtract: [tip.y, Bottom_Bracket_proj.y?name=Cycling*]
- mean: $prev
- convert:
from: mm
to: m
# Drop
# Vertical difference between top of bars and top of saddle. Neg=bars lower Pos =bars higher
- parameter: Drop_mean
where:
name: Bike*
steps:
- subtract: [B_Handle_Bar.z, B_Seat_Mid.z]
- mean:
- convert:
from: mm
to: m
# Reach (Saddle)
# Reach is measured from saddle_front to handle_bar, direct connection (not measured horizontally)
- parameter: Reach_mean
where:
name: Bike*
steps:
- distance: [B_Seat_Front, B_Handle_Bar]
- mean:
- convert:
from: mm
to: m
# Stack
# Head_Tube marker (projected on bike sagittal plane) to bottom bracket, vertical height difference
# DERIVED::Bike_Geometry::B_Head_Tube_VirtLab::Z-DERIVED::Bike_Geometry::B_Bottom_Bracket_proj_VirtLab::Z
- parameter: Geometry_stack_mean
where:
name: Bike*
steps:
- project: [B_Head_Tube, BikePlane?name=Cycling*]
space: VirtualLab
- subtract: [$prev.z, Bottom_Bracket_proj.z?name=Cycling*]
- mean:
- convert:
from: mm
to: m
# Reach (Bottom)
# Head_Tube marker (projected on sagittal plane) to bottom bracket, horizontal distance
# DERIVED::Bike_Geometry::B_Head_Tube_VirtLab::Y-DERIVED::Bike_Geometry::B_Bottom_Bracket_proj_VirtLab::Y
- parameter: Geometry_reach_mean
where:
name: Bike*
steps:
- project: [B_Head_Tube, BikePlane?name=Cycling*]
space: VirtualLab
- subtract: [$prev.y, Bottom_Bracket_proj.y?name=Cycling*]
- mean:
- convert:
from: mm
to: m
# Saddle angle
# planar angle B_Seat_Back+B_Seat_Front+Bike Origin+Virtual Lab Y in 3D subtracted from 180
# calculation of Saddle angle field if it is set to default 'Calculated'
- parameter: Saddle_angle_temp
where:
name: Bike*
steps:
- angle: [B_Seat_Back, B_Seat_Front, B_Stem, seatTubeMoved?name=Cycling*]
project: xz
- mean:
- convert:
from: radians
to: degrees
- subtract: [180, $prev]
# what to use if field set to calculated value
- parameter: Saddle_angle_mean
where:
name: Bike*
fields:
Saddle angle: Calculated
steps:
- import: Saddle_angle_temp
#what to use if field set to user entered value
- parameter: Saddle_angle_mean
where:
name: Bike*
steps:
- import: $field(Saddle angle)
#--------------
# PAF fields
#--------------
- parameter: LOAD_int
where:
name: Cycling*
steps:
- import: $field(Load; measurement; numeric)
- parameter: head_tube_spacers_above
where:
name: Bike*
steps:
- import: $field(Head tube spacers above)
- parameter: head_tube_spacers_below
where:
name: Bike*
steps:
- import: $field(Head tube spacers below)
- parameter: stem_length
where:
name: Bike*
steps:
- import: $field(Stem length)
- parameter: stem_angle
where:
name: Bike*
steps:
- import: $field(Stem angle)
- parameter: handlebar_width
where:
name: Bike*
steps:
- import: $field(Handlebar width)
- parameter: handlebar_reach
where:
name: Bike*
steps:
- import: $field(Handlebar reach)
- parameter: crank_length
where:
name: Bike*
steps:
- import: $field(Crank length)
- parameter: saddle_brand
where:
name: Bike*
steps:
- import: $field(Saddle brand)
- parameter: saddle_model
where:
name: Bike*
steps:
- import: $field(Saddle model)
- parameter: saddle_width
where:
name: Bike*
steps:
- import: $field(Saddle width)
- parameter: insole_arch_support
where:
name: Bike*
steps:
- import: $field(Insole arch support)
- parameter: shoe_brand
where:
name: Bike*
steps:
- import: $field(Shoe brand)
- parameter: shoe_model
where:
name: Bike*
steps:
- import: $field(Shoe model)
- parameter: pedal_brand
where:
name: Bike*
steps:
- import: $field(Pedal brand)
- parameter: pedal_model
where:
name: Bike*
steps:
- import: $field(Pedal model)
- parameter: left_shoe_toe_rotation_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Left shoe toe rotation)
- parameter: right_shoe_toe_rotation_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Right shoe toe rotation)
- parameter: left_pedal_stance_width_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Left pedal stance width)
- parameter: right_pedal_stance_width_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Right pedal stance width)
- parameter: left_shoe_fore_position_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Left shoe fore position)
- parameter: right_shoe_fore_position_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Right shoe fore position)
- parameter: left_inside_shoe_lift_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Left inside shoe lift)
- parameter: right_inside_shoe_lift_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Right inside shoe lift)
- parameter: left_outside_shoe_lift_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Left outside shoe lift)
- parameter: right_outside_shoe_lift_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Right outside shoe lift)
- parameter: left_inside_shoe_canting_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Left inside shoe canting)
- parameter: right_inside_shoe_canting_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Right inside shoe canting)
- parameter: left_outside_shoe_canting_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Left outside shoe canting)
- parameter: right_outside_shoe_canting_initial
where:
name: Bike trial - initial*
steps:
- import: $field(Right outside shoe canting)
- parameter: left_shoe_toe_rotation_final
where:
name: Bike trial - final*
steps:
- import: $field(Left shoe toe rotation)
- parameter: right_shoe_toe_rotation_final
where:
name: Bike trial - final*
steps:
- import: $field(Right shoe toe rotation)
- parameter: left_pedal_stance_width_final
where:
name: Bike trial - final*
steps:
- import: $field(Left pedal stance width)
- parameter: right_pedal_stance_width_final
where:
name: Bike trial - final*
steps:
- import: $field(Right pedal stance width)
- parameter: left_shoe_fore_position_final
where:
name: Bike trial - final*
steps:
- import: $field(Left shoe fore position)
- parameter: right_shoe_fore_position_final
where:
name: Bike trial - final*
steps:
- import: $field(Right shoe fore position)
- parameter: left_inside_shoe_lift_final
where:
name: Bike trial - final*
steps:
- import: $field(Left inside shoe lift)
- parameter: right_inside_shoe_lift_final
where:
name: Bike trial - final*
steps:
- import: $field(Right inside shoe lift)
- parameter: left_outside_shoe_lift_final
where:
name: Bike trial - final*
steps:
- import: $field(Left outside shoe lift)
- parameter: right_outside_shoe_lift_final
where:
name: Bike trial - final*
steps:
- import: $field(Right outside shoe lift)
- parameter: left_inside_shoe_canting_final
where:
name: Bike trial - final*
steps:
- import: $field(Left inside shoe canting)
- parameter: right_inside_shoe_canting_final
where:
name: Bike trial - final*
steps:
- import: $field(Right inside shoe canting)
- parameter: left_outside_shoe_canting_final
where:
name: Bike trial - final*
steps:
- import: $field(Left outside shoe canting)
- parameter: right_outside_shoe_canting_final
where:
name: Bike trial - final*
steps:
- import: $field(Right outside shoe canting)
############
# Cycling trials
############
# Crank Angle
#-----------------
# for now we allow to put crank marker only at opposite side of crank in respect to pedal (near axis)
# Filter crank markers
- marker: L_crank_filtered
steps:
- marker: L_crank
# Gap fill as it is important to get clean data for further processing
- gapFill:
- lowpass: $prev
order: 2
cutoff: 6
extrapolate: 100
- marker: R_crank_filtered
steps:
- marker: R_crank
# Gap fill as it is important to get clean data for further processing
- gapFill:
- lowpass: $prev
order: 2
cutoff: 6
extrapolate: 100
# Left crank angle
- event: L_TDC_Temp
where:
name: Cycling*
set: left
steps:
- negate: Left_Crank_Vlab.z
- peakFinder:
width: 10
- event: L_BDC_Temp
where:
name: Cycling*
set: left
steps:
- peakFinder: Left_Crank_Vlab.z
width: 10
- parameter: Left_Crank_Vlab
where:
name: Cycling*
set: left
steps:
- import: L_crank_filtered
space: VirtualLab
- convert:
from: mm
to: m
- parameter: Left_Crank_Angle
where:
name: Cycling*
set: left
steps:
# Calculate radius of the crank from mean vertical distance (Z) from BDC to TDC divided by 2
- mean: Left_Crank_Vlab.z@L_TDC_Temp
output: L_crank_Z_TDC
#- mean: Left_Crank_Vlab.y@L_TDC_Temp # would be used if crank marker is on crank itself
# output: L_crank_VLY_TDC
- mean: Left_Crank_Vlab.z@L_BDC_Temp
output: L_crank_Z_BDC
- mean: Left_Crank_Vlab.y@L_BDC_Temp
output: L_crank_VLY_BDC
- subtract: [L_crank_Z_BDC, L_crank_Z_TDC]
- divide: [$prev, 2]
- abs: $prev
output: L_Crank_Radius
# Adjust crank target marker to center of the crank (reference to Center of the crank) by subtracting mean y (forward) position at BDC using transformed crank
- subtract: [Left_Crank_Vlab.y, L_crank_VLY_BDC]
output: L_Pedal_Y
# Adjust crank target marker to center of the crank (reference to Center of the crank) by subtracting mean Z (vertical) position at TDC and then subtracting the radius
- subtract: [Left_Crank_Vlab.z, L_crank_Z_TDC]
- subtract: [$prev, L_Crank_Radius]
output: L_Pedal_Z
# Calculate crank angle in radians from ATAN2 using adjusted crank signals (Y and Z)
- atan2: [L_Pedal_Y, L_Pedal_Z]
- multiply: [$prev, 57.2958] #to deg
- add: [180, $prev]
# Right crank angle
- event: R_TDC_Temp
where:
name: Cycling*
set: right
steps:
- negate: Right_Crank_Vlab.z
- peakFinder:
width: 10
- event: R_BDC_Temp
where:
name: Cycling*
set: right
steps:
- peakFinder: Right_Crank_Vlab.z
width: 10
- parameter: Right_Crank_Vlab
where:
name: Cycling*
set: right
steps:
- import: R_crank_filtered
space: VirtualLab
- convert:
from: mm
to: m
- parameter: Right_Crank_Angle
where:
name: Cycling*
set: right
steps:
# Calculate radius of the crank from mean vertical distance (Z) from BDC to TDC divided by 2
- mean: Right_Crank_Vlab.z@R_TDC_Temp
output: R_crank_Z_TDC
- mean: Right_Crank_Vlab.z@R_BDC_Temp
output: R_crank_Z_BDC
- mean: Right_Crank_Vlab.y@R_BDC_Temp
output: R_crank_VLY_BDC
- subtract: [R_crank_Z_BDC, R_crank_Z_TDC]
- divide: [$prev, 2]
- abs: $prev
output: R_Crank_Radius
# Adjust crank target marker to center of the crank (reference to Center of the crank) by subtracting mean y (forward) position at BDC using transformed crank
- subtract: [Right_Crank_Vlab.y, R_crank_VLY_BDC]
output: R_Pedal_Y
# Adjust crank target marker to center of the crank (reference to Center of the crank) by subtracting mean Z (vertical) position at TDC and then subtracting the radius
- subtract: [Right_Crank_Vlab.z, R_crank_Z_TDC]
- subtract: [$prev, R_Crank_Radius]
output: R_Pedal_Z
# Calculate crank angle in radians from ATAN2 using adjusted crank signals (Y and Z)
- atan2: [R_Pedal_Y, R_Pedal_Z]
- multiply: [$prev, 57.2958] #to deg
- add: [180, $prev]
############
## EVENTS ##
############
- event: L_TDC
where:
name: Cycling*
set: left
steps:
- peakFinder: Left_Crank_Angle
height: 355
width: 10
- event: L_TDC1
where:
name: Cycling*
set: left
steps:
- add: [L_TDC, 1]
- event: L_BDC
where:
name: Cycling*
set: left
steps:
- threshold: Left_Crank_Angle
value: 180
direction: up
- event: L_PP
where:
name: Cycling*
set: left
steps:
- threshold: Left_Crank_Angle
value: 90
direction: up
- event: L_RP
where:
name: Cycling*
set: left
steps:
- threshold: Left_Crank_Angle
value: 270
direction: up
- event: R_TDC
where:
name: Cycling*
set: right
steps:
- peakFinder: Right_Crank_Angle
height: 355
width: 10
- event: R_TDC1
set: right
where:
name: Cycling*
steps:
- add: [R_TDC, 1]
- event: R_BDC
where:
name: Cycling*
set: right
steps:
- threshold: Right_Crank_Angle
value: 180
direction: up
- event: R_PP
where:
name: Cycling*
set: right
steps:
- threshold: Right_Crank_Angle
value: 90
direction: up
- event: R_RP
where:
name: Cycling*
set: right
steps:
- threshold: Right_Crank_Angle
value: 270
direction: up
# We do not have hip joint landmark, so we use origin of thigh segment
- event: LEFT_HIP_max
where:
name: Cycling*
set: left
steps:
- segment: LeftUpLeg => Left_Hip
space: VirtualLab
export: Left_Hip
- peakFinder: Left_Hip.z
width: 100
- event: LEFT_HIP_min
where:
name: Cycling*
set: left
steps:
- negate: Left_Hip => inv
- peakFinder: [inv.z, LEFT_HIP_max, LEFT_HIP_max]
width: 50
- event: RIGHT_HIP_max
where:
name: Cycling*
set: right
steps:
- segment: RightUpLeg => Right_Hip
space: VirtualLab
export: Right_Hip
- peakFinder: Right_Hip.z
width: 100
- event: RIGHT_HIP_min
where:
name: Cycling*
set: right
steps:
- negate: Right_Hip => inv
- peakFinder: [inv.z, RIGHT_HIP_max, RIGHT_HIP_max]
width: 50
############
## SERIES ##
############
# --- Pelvis ---
- parameter: Left Pelvic Angles
where:
name: Cycling*
set: left
steps:
- jointAngle: Hips
space: VirtualLab
- multiply: [$prev, [-1, 1, -1]]
- parameter: Right Pelvic Angles
where:
name: Cycling*
set: right
steps:
- jointAngle: Hips
space: VirtualLab
- multiply: [$prev, [-1, -1, 1]]
# --- Hips ---
- parameter: Left Hip Angles
where:
name: Cycling*
set: left
steps:
- jointAngle: [Hips, LeftUpLeg]
- multiply: [$prev, [1, -1, 1]]
- parameter: Right Hip Angles
where:
name: Cycling*
set: right
steps:
- jointAngle: [Hips, RightUpLeg]
# --- Knee ---
- parameter: Left Knee Angles
where:
name: Cycling*
set: left
steps:
- jointAngle: [LeftUpLeg, LeftLeg]
output: kneeAngle
- multiply: [kneeAngle, [-1, -1, -1]]
- parameter: Right Knee Angles
where:
name: Cycling*
set: right
steps:
- jointAngle: [RightUpLeg, RightLeg]
- multiply: [$prev, [-1, 1, 1]]
# --- Ankle ---
- parameter: Left Ankle Angles
where:
name: Cycling*
set: left
steps:
- jointAngle: [LeftLeg, LeftFoot]
- multiply: [$prev, [1, -1, 1]]
- parameter: Right Ankle Angles
where:
name: Cycling*
set: right
steps:
- jointAngle: [RightLeg, RightFoot]
- multiply: [$prev, [1, 1, -1]]
- parameter: Left Foot Progression
where:
name: Cycling*
set: left
steps:
- jointAngle: LeftFoot
space: VirtualLab
- multiply: [$prev, [-1, 1, -1]]
- parameter: Right Foot Progression
where:
name: Cycling*
set: right
steps:
- jointAngle: RightFoot
space: VirtualLab
- multiply: [$prev, [-1, 1, 1]]
# --- Trunk ---
- parameter: Trunk Angles
where:
name: Cycling*
steps:
- jointAngle: [Hips, Spine2]
- multiply: [$prev, [-1, 1, -1]]
- parameter: Trunk Angles_wrt_LAB
where:
name: Cycling*
steps:
- jointAngle: Spine2
space: VirtualLab
- multiply: [$prev, [-1, 1, 1]]
# --- Shoulders ---
- parameter: Left Shoulder Angles
where:
name: Cycling*
set: left
steps:
- jointAngle: [Spine2, LeftArm]
- parameter: Right Shoulder Angles
where:
name: Cycling*
set: right
steps:
- jointAngle: [Spine2, RightArm]
- multiply: [$prev, [1, -1, 1]]
- parameter: Left Shoulder_Pelvis Angle
where:
name: Cycling*
set: left
steps:
- jointAngle: [Hips, Spine2]
- multiply: [$prev, [1, -1, -1]]
- parameter: Right Shoulder_Pelvis Angle
where:
name: Cycling*
set: right
steps:
- jointAngle: [Hips, Spine2]
- parameter: Shoulders_wrt_VLab
where:
name: Cycling*
steps:
- jointAngle: Neck
space: VirtualLab
# --- Wrists ---
- parameter: Left Wrist Angles
where:
name: Cycling*
set: left
steps:
- jointAngle: [LeftHand, LeftForeArm]
- parameter: Right Wrist Angles
where:
name: Cycling*
set: right
steps:
- jointAngle: [RightHand, RightForeArm]
# --- Head ---
- parameter: Head Angles
where:
name: Cycling*
steps:
- jointAngle: [Spine2, Head]
- multiply: [$prev, [-1, 1, 1]]
#############
## METRICS ##
#############
# Cadence average [degs/s]
# (Cycle_count - 1) * 360 / (last L_TDC - first L_TDC)
- parameter: Cadence
where:
name: Cycling*
steps:
- count: L_TDC
- subtract: [$prev, 1]
export: Cycle_count
- multiply: [$prev, 360]
output: cyc_count_cor_m
- eventTime: L_TDC => TDC_times
- min: TDC_times => first_TDC
- max: TDC_times => last_TDC
- subtract: [last_TDC, first_TDC]
output: time_first_to_last_TDC
- divide: [cyc_count_cor_m, time_first_to_last_TDC]
# Hip vertical travel
- parameter: LEFT_HIP_range
where:
name: Cycling*
set: left
steps:
- import: Left_Hip@LEFT_HIP_min
output: min
- import: Left_Hip@LEFT_HIP_max
output: max
- subtract: [max, min]
- convert:
from: mm
to: m
- mean:
export: LEFT_HIP_range_mean
- stdDev: $prev(2)
export: LEFT_HIP_range_sd
- parameter: RIGHT_HIP_range
where:
name: Cycling*
set: right
steps:
- import: Right_Hip@RIGHT_HIP_min
output: min
- import: Right_Hip@RIGHT_HIP_max
output: max
- subtract: [max, min]
- convert:
from: mm
to: m
- mean:
export: RIGHT_HIP_range_mean
- stdDev: $prev(2)
export: RIGHT_HIP_range_sd
# Wrist height relative to hip
- parameter: Left_Wrist_rt_Hip
where:
name: Cycling*
set: left
steps:
- segment: LeftHand => wrist
space: VirtualLab
- subtract: [wrist, Left_Hip]
- convert:
from: mm
to: m
- parameter: Right_Wrist_rt_Hip
where:
name: Cycling*
set: right
steps:
- segment: RightHand => wrist
space: VirtualLab
- subtract: [wrist, Right_Hip]
- convert:
from: mm
to: m
# Pelvis angles at events
- parameter: PELVIS_ANGLE@R_TDC
where:
name: Cycling*
set: right
steps:
- import: Right Pelvic Angles@R_TDC
- parameter: PELVIS_ANGLE@R_BDC
where:
name: Cycling*
set: right
steps:
- import: Right Pelvic Angles@R_BDC
- parameter: PELVIS_ANGLE@R_PP
where:
name: Cycling*
set: right
steps:
- import: Right Pelvic Angles@R_PP
- parameter: PELVIS_ANGLE@R_RP
where:
name: Cycling*
set: right