MotionGen is a planar four-bar linkage simulation and synthesis app that helps users synthesize planar four-bar linkages by assembling two of the planar RR-, RP- and PR-dyad types, (R refers to a revolute or hinged joint and P refers to a prismatic or sliding joint).
The input task is a planar motion given as a set of discrete positions and orientations and the app computes type and dimensions of synthesized planar four-bar linkages, where their coupler interpolates through the given poses either exactly or approximately while minimizing an algebraic fitting error. The algorithm implemented in the app extracts the geometric constraints (circular, fixed-line or line-tangent-to-a-circle) implicit in a given motion and matches them with corresponding mechanical dyad types enumerated earlier. In the process, the dimensions of the dyads are also computed. By picking two dyads at a time, a planar four-bar linkage is formed. Due to the degree of polynomial system created in the solution, up to a total of six four-bar linkages can be computed for a given motion.
MotionGen also lets users simulate planar four-bar linkages by assembling the constraints of planar dyads on a blank- or image-overlaid screen. This constraint-based simulation approach mirrors the synthesis approach and allows users to input simple geometric features (circles and lines) for assembly and animation. As an example of the Simulation capabilities of the app, Figure shows a walking robot driven by two sets of planar four-bar linkages where the foot approximately traces a trajectory of walking motion. The users can input two dyads on top of an imported image of a robot or machine to verify the motion and make interactive changes to the trajectories.
Anurag Purwar describes MotionGen and its applications in this video: