Description Usage Arguments Value Examples
This function generates object of mocap class with zero rotation data (rotation angle is set to 0).
1 | generate.first.frame(input.skeleton, Nframes = 1, FrameTime = 0.01)
|
input.skeleton |
object of mocap class which defines hierarchical model. |
Nframes |
number of frames to be generated. |
FrameTime |
intervals between acquisitions. |
object of mocap class.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.