GithubHelp home page GithubHelp logo

pyslvs / pyslvs-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kmolyuan/pyslvs-ui

0.0 0.0 0.0 50.53 MB

An open source planar linkage mechanism simulation and mechanical synthesis system.

Home Page: https://pyslvs-ui.readthedocs.io

License: GNU Affero General Public License v3.0

Shell 0.83% Python 99.06% Batchfile 0.11%

pyslvs-ui's Introduction

PyPI Language grade: Python

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 [email protected].

pyslvs-ui's People

Contributors

kmolyuan avatar probonopd avatar pyslvs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.