Description Usage Arguments Details Value References Examples
View source: R/getMotionData.R
This function will turn your asf
and amc
objects into a list of
3D motion matrices, one for each bone.
1 | getMotionData(asf, amc, verbose = FALSE)
|
asf |
ASF object read with |
amc |
AMC object read with |
verbose |
a boolean indicating whether or not to print no. of frames read, defaults to TRUE |
This function accepts a pair of asf
and amc
objects, for each
frame traverses the skeleton in a Depth First Search form to return the xyz
list. Each element of this list represents the 3D (global) coordinates of
motion for each bone. Thus each element of the list is of dimensions nFrames x 3
xyz |
a named list of 3D motion data matrices, one for each bone, see Details. |
A blog post describing the package with more examples: http://giorasimchoni.com/2017/08/08/2017-08-08-lambada-the-mocap-package/
The CMU Graphics Lab Motion Capture Database: http://mocap.cs.cmu.edu/
1 2 3 4 5 | asfFilePath <- system.file("extdata", "lambada.asf", package = "mocap")
asf <- readASF(asfFilePath)
amcFilePath <- system.file("extdata", "lambada.amc", package = "mocap")
amc <- readAMC(amcFilePath, asf)
xyz <- getMotionData(asf, amc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.