| Algorithm 1 Offline Feet Contact Cassification. | |
| Require: FT sensor forces (z component) for right foot and left foot | |
| 1: | procedure |
| 2: | N ← number of samples |
| 3: | ← threshold on fz = mean() |
| 4: | main loop: |
| 5: | for do |
| 6: | if then |
| 7: | Classify j as double support sample |
| 8: | else |
| 9: | if then |
| 10: | Classify j as right single support sample |
| 11: | else |
| 12: | Classify j as left single support sample |
| 13: | end if |
| 14: | end if |
| 15: | end for |
| 16: | end procedure |