Git Product home page Git Product logo

pyfri's People

Contributors

cmower avatar mhubii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pyfri's Issues

Support for asynchronous execution

Currently, the library only allows for synchronous execution, i.e.

  1. KUKA controller sends a message to the LBR client
  2. Depending on the session state the monitor, onStateChange, waitForCommand, or command methods are called
  3. A response message is encoded and sent back to the controller.

It would be great to implement a way so that you can run a loop on the python side at what ever frequency you like, and have another thread execute in parallel that does the communication with the KUKA controller at the frequency specified on the pad (or in the Java).

Convert numpy arrays to required format internally to wrapper.cpp

Currently, the user is required to ensure the dtype of a numpy array passed to the "set" commands (e.g. setJointPosition) is a np.float32, for example:

https://github.com/cmower/FRI-Client-SDK_Python/blob/2cb8023c2e47c3250f231a6bc4d6b5760a2b6857/examples/LBRJointSineOverlay.py#L31-L33

What's worse, is that the "get" methods, e.g. getIpoJointPosition as above, output numpy arrays with dtype=np.float64. Two things should be changed in wrapper.cpp:

  • "get" methods should return numpy arrays with dtype=np.float32 by default.
  • "set" methods should accept any format, but convert the dtype internally to the correct format., see below

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.