User Tools

Site Tools


visual3d:documentation:pipeline:model_commands:get_vicon_model_metric

This is an old revision of the document!


extracting metric values from vicon's .mp file into visual3d subject/data metrics

pipeline command

get_vicon_model_metric ! /calibration_file= ! /mp_file_name= ! /metric_names= ! /metric_values= ; /calibration_file refers to the link model in which the metrics will be stored if calibration_file is empty or =*, the current link model is used. /mp_file_name refers to the vicon mp file if mp_file_name is empty, the user is prompted for the filename. mp_file_name refers to the full path name of the file. /metric_names and /metric_values are optional if metric_names is empty or =*, all metric_names in the .mp file are selected if metric_values is populated, this is the default value of metric_names and is used if metric_names does not exist in the .mp file.

example

given an mp file containing the following information:

$rknee_width = 150.0 $rfoot_width = 100.0 $lknee_width = 150.0 $lfoot_width = 100.0 and the command

'get_vicon_model_metric /calibration_file=* /mp_file_name= /metric_names= /metric_values= /name_prefix= ;

  • the current active model will be used.
  • the user will be prompted for the mp file name.
  • all 4 metric values in the mp file will be added to the model subject metrics
  • no prefix will be added to the names.


get_vicon_model_metric /calibration_file= /mp_file_name= /metric_names=rhip_radius /default_metric_values=0.5*distance(right_hip,left_hip) /name_prefix= ;

  • rhip_radius is not part of the mp file
  • a default metric value has been provided
  • a model metric rhip_radius will be created (or modified)
  • the value of the metric will be the expression 0.5*distance(right_hip,left_hip)
visual3d/documentation/pipeline/model_commands/get_vicon_model_metric.1718801525.txt.gz · Last modified: 2024/06/19 12:52 by sgranger