pyCGM_Single.pyCGM

Description

This file is used in joint angle and joint center calculations.

Functions

JointAngleCalc(frame, vsk)

Joint Angle Calculation function.

ankleJointCenter(frame, knee_JC, delta[, vsk])

Calculate the ankle joint center and axis.

combineDataDict(values, labels)

Converts two lists of values and labels to a dictionary.

cos(x, /)

Return the cosine of x (measured in radians).

createMotionDataDict(labels, data)

Creates an array of motion capture data given labels and data.

createVskDataDict(labels, data)

Creates a dictionary of vsk file values from labels and data.

cross(a, b)

Cross Product.

dataAsArray(data)

Converts a dictionary of markers and their corresponding x, y, and z coordinate values to an array of dictionaries.

dataAsDict(data[, npArray])

Converts frame-by-frame motion capture data to a dictionary.

elbowJointCenter(frame, thorax, shoulderJC, wand)

Calculate the Elbow joint axis ( Humerus) function.

findJointC(a, b, c, delta)

Calculate the Joint Center.

findshoulderJC(frame, thorax, wand[, vsk])

Calculate the Shoulder joint center function.

findwandmarker(frame, thorax)

Calculate the wand marker function.

footJointCenter(frame, vsk, ankle_JC, …)

Calculate the foot joint center and axis.

getHeadangle(axisP, axisD)

Head angle calculation function.

getPelangle(axisP, axisD)

Pelvis angle calculation.

getangle(axisP, axisD)

Normal angle calculation.

getangle_sho(axisP, axisD)

Shoulder angle calculation.

getangle_spi(axisP, axisD)

Spine angle calculation.

handJointCenter(frame, elbowJC, wristJC[, vsk])

Calculate the Hand joint axis (Hand).

headJC(frame[, vsk])

Calculate the head joint axis function.

hipAxisCenter(l_hip_jc, r_hip_jc, pelvis_axis)

Calculate the hip center axis and hip axis.

hipJointCenter(frame, pel_origin, pel_x, …)

Calculate the hip joint center.

kneeJointCenter(frame, hip_JC, delta[, vsk])

Calculate the knee joint center and axis.

loadC3D(filename)

Open and load a C3D file of motion capture data

loadCSV(filename)

Open and load a CSV file of motion capture data.

loadData(filename[, rawData])

Loads motion capture data from a csv or c3d file.

loadEZC3D(filename)

Use c3dez to load a c3d file.

loadVSK(filename[, dict])

Open and load a vsk file.

make_sure_path_exists(path)

Creates a file path.

markerKeys()

A list of marker names.

matrixmult(A, B)

Matrix multiplication.

norm2d(v)

2D Vector normalization.

norm3d(v)

3D Vector normalization.

normDiv(v)

Normalized divison.

pelvisJointCenter(frame)

Make the Pelvis Axis.

rotmat([x, y, z])

Rotation Matrix.

shoulderAxisCalc(frame, thorax, shoulderJC, wand)

Calculate the Shoulder joint axis ( Clavicle) function.

sin(x, /)

Return the sine of x (measured in radians).

smKeys()

A list of segment labels.

splitDataDict(motionData)

Splits an array of motion capture data into separate labels and data.

splitMotionDataDict(motiondata)

Splits an array of motion capture data into separate labels and data.

splitVskDataDict(vsk)

Splits a dictionary of vsk file values into labels and data arrays

sqrt(x, /)

Return the square root of x.

thoraxJC(frame)

Calculate the thorax joint axis function.

wristJointCenter(frame, shoulderJC, wand, …)

Calculate the Wrist joint axis ( Radius) function.

writeKinetics(CoM_output, kinetics)

Uses numpy.save to write kinetics data as an .npy file.

writeResult(data, filename, **kargs)

Writes the result of the calculation into a csv file.