Skip to main content

PMAC parser and kinematics emulator

Project description

Build Status Coverage Status Code Health

PMACParser is a library that parses PMAC programs. It includes an emulator for forward kinematic programs, which parses the program and then, using an input dictionary of variables, runs the program, returning a dictionary of populated variables based on the operations of the kinematic program.

Documentation

To use:

from pmacparser.pmac_parser import PMACParser

code_lines = [“Q1=(P(4800+1)*P1+P(4900+1))”, “Q5=(P(4800+2)*P2+P(4900+2))”]

input_vars = {“P1”: 51, “P2”: 345.3, “P4801”: 45.4, “P4802”: 162.4, “P4901”: 4, “P4902”: 5}

parser = PMACParser(code_lines)

output_vars = parser.parse(input_vars)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pmacparser, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size pmacparser-0.4.tar.gz (11.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page