BTK Matlab Wrapper
0.3dev.0
Matlab bindings for the Biomechanical ToolKit library (BTK)
|
Append a virtual force platform of type 2 (Fx,Fy,Fz,Mx,My,Mz).
btkAppendForcePlatformType2(h, forces, moments, corners)
btkAppendForcePlatformType2(h, forces, moments, corners, origin)
btkAppendForcePlatformType2(h, forces, moments, corners, origin, localframe)
h | Handle pointing to a C++ btk::Acquisition object. |
forces | Matrix (n,3) where 'n' is the number of analog frames in the acquisition. If the given data corresponds to the number of point frames, these data will be then interpolated to fit the number of analog frames. |
moments | Matrix (n,3) where 'n' is the number of analog frames in the acquisition. If the given data corresponds to the number of point frames, these data will be then interpolated to fit the number of analog frames. |
corners | Matrix (4,3) corresponding to the location of the corners in the global frame (see detailed description for the order of the corners). |
origin | Column vector containing the location of the force plate origin related to it surface's center and expressed in the global frame. |
localframe | Flag (set to 0 by default) which indicates if the given forces and moments are expressed in the local or global frame. |
btkAppendForcePlatformType2(h, forces, moments, corners)
creates a virtual force platform based only on the reaction forces and moments expressed in the global frame. This function updates all the metadata in the group FORCE_PLATFORM and append 6 analog channels. btkAppendForcePlatformType2(h, forces, moments, corners, origin)
sets also the origin of the force platform compare to its surface. The origin must be expressed in the frame of the force plate. Thus the verical component should be negative as the surface is higher than the origin. Setting the origin to an empty matrix has the same effect than giving an origin equals to [0,0,0]. btkAppendForcePlatformType2(h, forces, moments, corners, origin, localframe)
create a virtual force platform using forces and moments expressed in the local frame if localframe is not set to 0. The content of corners and origin still must be expressed in the global frame. The use of localframe can be useful if you use data recorded directly from the force platform.