Learn R Programming

linkR (version 1.1.1)

animateLinkage: Animates a lever or linkage

Description

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

Usage

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.

Value

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

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.

See Also

defineLinkage