generate.first.frame: This function generates object of mocap class with zero...

Description Usage Arguments Value Examples

Description

This function generates object of mocap class with zero rotation data (rotation angle is set to 0).

Usage

1
generate.first.frame(input.skeleton, Nframes = 1, FrameTime = 0.01)

Arguments

input.skeleton

object of mocap class which defines hierarchical model.

Nframes

number of frames to be generated.

FrameTime

intervals between acquisitions.

Value

object of mocap class.

Examples

1
2
3
4
5
6
7
8
9
data("heian.nidan.bvh")
f <- file("heian.nidan.bvh")
writeChar(con = f, object = heian.nidan.bvh)
close(f)
#read hierarchical model stored in hierarchical BVH file
heian.nidan <- read.mocap("heian.nidan.bvh")
first.frame <- generate.first.frame(heian.nidan)
plot(heian.nidan, frame = 1, alpha = 1, spheres = TRUE)
plot(first.frame, my.color = "red", frame = 1, alpha = 1, spheres = TRUE, append = TRUE)

browarsoftware/RMoCap documentation built on May 16, 2019, 7:28 a.m.