/
getConstraintError

getConstraintError

Description

Gets the constraint error.

This method returns the error of the given constraint at the current time as determined by the difference between the constraining node's position and its offset. Value is in millimeters.

Functional area

Data retrieval

Command syntax

Syntax

getConstraintError "SolvingConstraint or LabelingConstraint name"

Arguments

NameTypeRequiredComments
SolvingConstraint or
LabelingConstraint name
stringyesThe constraint whose error is to be retrieved.

Flags

None

Return value

float

Returns the error of the given constraint at the current time.

Examples

// Will get the constraint error for the LFHD_Head Constraint.
float $err;
$err = `getConstraintError "LFHD_Head"`;
print $err;

© Copyright Vicon Motion Systems. All rights reserved.

Vicon trademarks