User Tools

Site Tools


visual3d:documentation:pipeline:expressions:assigned_force_functions

Assigned Force Functions

The model-based items GRF_DATA and COP Path are signals stored at the POINT data rate. This is because these signals have the option to be resolved into a Segment Coordinate System and all Segment Coordinate Systems (except the default LAB) are at the POINT rate. There are times, however, when it would be useful to get the Force, CofP, and FreeMoment signals for a givenforce assignment at the ANALOG sample rate.

Forces

Syntax: FORCE(segment)

Example: Select the force assigned to the Left Foot segment (whose default segment name is LFT).

Evaluate_Expression
/EXPRESSION=FORCE("LFT")
/RESULT_NAME=SCOTT
! /RESULT_TYPE=DERIVED
! /RESULT_FOLDER=PROCESSED
;

Center of Pressure

Syntax: COFP(segment)

Example: Select the center of pressure assigned to the Left Foot segment (whose default segment name is LFT).

Evaluate_Expression
/EXPRESSION=COFP("LFT")
/RESULT_NAME=SCOTT
! /RESULT_TYPE=DERIVED
! /RESULT_FOLDER=PROCESSED
;

Free Moment

Syntax: FREEMOMENT(segment)

Example: Select the Free Moment assigned to the Left Foot segment (whose default segment name is LFT).

Evaluate_Expression
/EXPRESSION=FREEMOMENT("LFT")
/RESULT_NAME=SCOTT
! /RESULT_TYPE=DERIVED
! /RESULT_FOLDER=PROCESSED
;

Error Messages

There are several possible error messages related to the Assigned Forces expressions.

Segment Name must be Quoted

Evaluate_Expression
/EXPRESSION=FORCE(JUNK)
/RESULT_TYPE=DERIVED
/RESULT_FOLDER=PROCESSED
/RESULT_NAME=TEST
;

WARNING! No Segment Name was specified. Did you forget the quotes?

In order to ensure that a string containing the segment name is recognized quotes must be used.

Evaluate_Expression
/EXPRESSION=COFP("JUNK")
/RESULT_TYPE=DERIVED
/RESULT_FOLDER=PROCESSED
/RESULT_NAME=TEST
;

INFO! Segment Junk was not found

The segment must be a part of the Link Model in order to be findable.

Use Default Segment Names

Evaluate_Expression
/EXPRESSION=COFP("Right Foot")
/RESULT_TYPE=DERIVED
/RESULT_FOLDER=PROCESSED
/RESULT_NAME=TEST
;

WARNING! Evaluate_Expression requires default segment names. For Right Foot use RFT

Visual3D has a set of default segment names that must be used in expressions, so that the expressions can be shared between users that have different config files.

Can't Use Kinematic Only Segments

Evaluate_Expression
/EXPRESSION=COFP("Right Fore Foot")
/RESULT_TYPE=DERIVED
/RESULT_FOLDER=PROCESSED
/RESULT_NAME=TEST
;

INFO! Segment Right Fore Foot is Kinematic Only, so there is no Force Assignment possible.

Only kinetic segments can be assigned a force.

visual3d/documentation/pipeline/expressions/assigned_force_functions.txt · Last modified: 2024/09/11 17:22 by wikisysop