Files to post-process mocap data for event detection and EAF file generation. Work in progress, needs some clean up.
Calculates distances travelled by the sensors from the 3D coordinates.
Example:
python mocap_gen_dists.py -f mocap_valentijn/beach_repr_2b.tsv
The above example creates a mocap_valentijn/beach_repr_2b_dists.tsv
file containing the 3D distances travelled between each X,Y,Z point of each sensor.
Determine the direction of movement from the 3D data. Work-in-progress.
Example:
python mocap_gen_dirs.py -f mocap_valentijn/beach_repr_2b.tsv
The above creates a file called mocap_valentijn/beach_repr_2b_dirs.tsv
containing values :-).
Takes a distance file (generated by mocap_gen_dists.py
) and tries to determine motion events. Adds a tier for each sensor with motion annotations to an existing EAF file. Tiers/sensors are hard-coded at the moment.
Example:
python mocap_eaf.py -f mocap_valentijn/beach_repr_2b_velocity_M.tsv -d mocap_valentijn/beach_repr_2b_dists.tsv -e mocap_valentijn/beach_repr_2_pb.eaf
python mocap_eaf.py -d mocap_valentijn/beach_repr_2b_dists.tsv -D mocap_valentijn/beach_repr_2b_dirs.tsv -E mocap_valentijn/mynew.eaf
python mocap_eaf.py -d mocap_valentijn/beach_repr_2b_dists.tsv -D mocap_valentijn/beach_repr_2b_dirs.tsv
Plots sensor data.
Example:
python mocap_plot.py -f mocap_valentijn/beach_repr_2b_velocity_M.tsv -d mocap_valentijn/beach_repr_2b_dists.tsv -r mocap_valentijn/beach_repr_2b_dirs.tsv
Plots raw sensor data from a tab separated file from the MoCap
system. Add filter(s) with the -F
parameter. Specifying the -s
option creates a separate file for each sensor. The -w
option
creates a "pseudo wave file" which can be loaded into Elan to
visualise the amount of motion as a waveform.
Example:
python mocap_plot_raw.py -f mocap_valentijn/beach_repr_2b.tsv -F X_RHand -F b_RHand
Plots distance data from a tab separated file generated by mocap_gen_dists.py
.
Example:
python mocap_plot_dists.py -f -d dyad_description_2_light_dists.tsv -F x_RHan
Plots velocity file.
Plots one of the angular acceleration files (LH).