Description Usage Format Examples
A class returned by read.mocap function.
1 | read.mocap("file.name.bvh")
|
a list containing:
Joints - list of joints,
Time - vector with time series,
FrameTime - value of time interval between samples,
Frame - samples count.
Each joint is a list that contains:
Nestdepth - level of joint in hierarchy,
Name - name of the joint,
Parent - id of the parent on the list, root joint has parent = -1,
Offset - 3D vector with offset from parent joint,
Nchannels - number of data channels (6 from root, 3 for other or 0 for end point),
Order - rotation order (accepted orders are XYZ, XZY, YXZ, YZX, ZXY or ZYX),
Dxyz - matrix with direct kinematic displacement (calculated from original data),
RawDxyz - matrix with direct kinematic displacement, present only in root joint,
Rxyz - matrix with rotation in degrees of hierarchical kinematic model,
Trans - list of rotation - translation matrices that are used to recalculates hierarchical to direct kinematic model.
1 2 3 4 5 6 7 8 9 | #an example BVH file
data("heian.nidan.bvh")
#write file to the disc
f <- file("heian.nidan.bvh")
writeChar(con = f, object = heian.nidan.bvh)
close(f)
#read hierarchical model stored in BVH file
heian.nidan <- read.mocap("heian.nidan.bvh")
summary(heian.nidan)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.