Pyslvs core module. An open source planar linkage mechanism synthesis tool.
Project description
Pyslvs Libraries
A no-GUI module of mechanism synthesis system and a 2D geometric constraint solver.
Installation
Install from PyPI:
pip install pyslvs
Or install and test from source:
pip install -e .
python test
Documentation
Run the solver through an example:
from pyslvs import example_list, parse_vpoints, t_config, expr_solving
# Get example with name
expr, inputs = example_list("Jansen's linkage (Single)")
# Parse the mechanism expression into a list of joint data
vpoints = parse_vpoints(expr)
# Config joint data and control data for the solver
exprs = t_config(vpoints, inputs)
# Solve the position
result = expr_solving(exprs, vpoints, {pair: 0. for pair in inputs})
# Get the result from joint 7
x, y = result[7]
print(x, y) # -43.170055 -91.753226
The documentation of Pyslvs library is on Readthedocs.
If you have any questions, please post on GitHub issue or contact pyslvs@gmail.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyslvs-21.9.0.tar.gz
(2.8 MB
view hashes)
Built Distributions
Close
Hashes for pyslvs-21.9.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35f069d7ea3dab8c2bd19bf94a4a061c33edf3388acb31d66d536e17530e40cd |
|
MD5 | 28d432d0a025ca591da36c9a5cfb333b |
|
BLAKE2b-256 | 374e8e81ab47033a612f17508e3afc21b8b63c6d76753cc7a544992918c53723 |
Close
Hashes for pyslvs-21.9.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b98b679937002249ad4da289e3aa4051fd638e6e575b78840e09d5178ff0ca6a |
|
MD5 | c735ea6b2029e75e870903684c8a3c2c |
|
BLAKE2b-256 | 6439fd08e57dda3d22a63f11a9336a3dcd950fba202b1a90c08db85500594522 |
Close
Hashes for pyslvs-21.9.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc8b45816395fbca5a20b3990af74e5ad1402edd51edf86bb1c0ff0047d20f64 |
|
MD5 | 73442e0b24d94efd947d8a86b485369e |
|
BLAKE2b-256 | 820a6493fe7dfa107b3f4cbebb19897a356c270ec9c124ecc2c4575939e93779 |
Close
Hashes for pyslvs-21.9.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc8564db4d63ee54a8e5997deb158893a9a833733ebc8b54b3f0132de860d2ba |
|
MD5 | 02162ed026c540a6c036e3c2059051b6 |
|
BLAKE2b-256 | b13c5103f20d59fe8a374526befa65b9c80f229ab67aeb5b0948f52818d50ce4 |