Crates.io | four-bar |
lib.rs | four-bar |
version | 7.0.4 |
source | src |
created_at | 2021-10-28 08:54:57.627935 |
updated_at | 2024-09-23 14:24:54.255837 |
description | Four🍀bar library provides simulation and synthesis function for four-bar linkages. |
homepage | |
repository | https://github.com/KmolYuan/four-bar-rs |
max_upload_size | |
id | 473476 |
size | 151,106 |
Four-bar is a simulator and a synthesizing tool for four-bar linkage mechanism.
use four_bar::FourBar;
// Get the trajectory of the coupler point
let path = FourBar::example().curve(360);
FourBar
struct defines a planar four-bar linkage.MFourBar
struct defines a planar four-bar linkage for motion generation (rigid body guidance) synthesis.SFourBar
struct defines a spherical four-bar linkage.*NormFourBar
structs are the normalized versions of the above linkages without the translation, rotation, and scaling.serde
. (serde
and csv
feature)plot
feature)rayon
feature to speed up the synthesis process. Also, the clap
feature provides a CLI interface for the synthesis tool.atlas
feature)four-bar-ui
is available at the repo with a web demo.The synthesis technique is based on the paper by us: