animateLinkage: Animates a lever or linkage

Description Usage Arguments Details Value Author(s) See Also

Description

This function animates a lever or linkage mechanism according to specified translational or rotational motion of the input link.

Usage

1
2
3
animateLinkage(linkage, input.param, input.joint=NULL,
               check.inter.joint.dist = TRUE, check.joint.cons = TRUE, 
               check.inter.point.dist = TRUE, print.progress = FALSE)

Arguments

linkage

A linkage object. This is a list of class "linkage" created by defineLinkage.

input.param

A list containing the input parameters for the linkage. The number of list elements corresponds to the number of joints for which input motion is specified. Thus, a one degree-of-freedom mechanism should be of length one; a two degree-of-freedom mechanism of length two, etc.

input.joint

A vector specifying the joint(s) at which the input motion is to be applied. Currently, input motion can only be specified at grounded joints.

check.inter.joint.dist

A logical indicating whether a check should be run to verify that the distances among connected joints is constant. A warning message is displayed if the distances are non-constant.

check.joint.cons

A logical indicating whether a check should be run to verify that the joint constraints are maintained through the simulation. This feature is currently in development and does not work for all joint types.

check.inter.point.dist

A logical indicating whether a check should be run to verify that the distances among points on the same body are constant. A warning message is displayed if the distances are non-constant.

print.progress

A logical indicating whether to print progress while running.

Details

Please see linkR Resources for a tutorial on how to use the linkR package and the linkR example gallery for several examples (code and animations) of different linkages that can be created using linkR.

Value

a list of class "linkage" having the same elements as the input linkage with some exceptions, including:

joint.coor

The joint matrix will be converted to an array, where dim(joints)[3] is equal to the number of animation iterations.

points

If provided in the input, the point matrix will be converted to an array, where dim(points)[3] is equal to the number of animation iterations.

Author(s)

Aaron Olsen

See Also

defineLinkage


aaronolsen/linkR documentation built on June 13, 2019, 5:39 p.m.