Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icepap simulator #73

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tiagocoutinho
Copy link
Contributor

@tiagocoutinho tiagocoutinho commented Jul 2, 2021

Introduce optional simulator.
This is based on sintruments.
It provides simulation for basic motion including jog.
It can be easily extended to provide more features like encoders, trajectories if needed

Install with:

$ pip install icepap[simulator]

Make sure icepap simulator is registered:

$ sinstruments-server ls
[...]
IcePAP from icepap 3.6.1
[...]

Configure a yaml file called ice.yaml. Example:

    devices:
    - class: IcePAP
      transports:
      - type: tcp
        url: 0:5000
      axes:
      - address: 1
        velocity: 100
        name: th
      - address: 2
        name: tth
        acctime: 0.125
      - address: 11
        name: phi
      - address: 12
        name: chi

run server with:

sinstruments-server -c ./ice.yaml --log-level=debug

access like a "real" icepap with this python library or from cli:

$ nc -C localhost 5000
1:?pos
1:?pos 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant