Cross platform fast time python robot interface controller
Project description
FTPRCI
Fast Time Python Robot Controller Interface
Description
This library is a collection of classes and functions to help with the development of robot controllers in Python. It is designed to be fast and easy to use, with a focus on real-time control. Works on CPython and MicroPython.
Installation
To install the library, simply run:
```bash
pip install ftprci
```
Usage
The library is divided into several modules, each with a specific purpose:
interface: Contains theInterfaceclass, which is an abstract base class for all interfaces.actuators: Contains theActuatorclass, which is an abstract base class for all actuators.estimator: Contains theEstimatorclass, which is an abstract base class for all estimators.controller: Contains theControllerclass, which is an abstract base class for all controllers.sensor: Contains theSensorclass, which is an abstract base class for all sensors.logger: Contains theLoggerclass, which is used for logging.main: Contains theRunnerThreadclass, which is used to run the controller with precise timings.
Here is an example of how to use the library:
```python
import ftprci as fci
sensor = fci.LSM6()
controller = fci.PIDController()
estimator = fci.KalmanFilter()
actuator = fci.DCMotor()
th = fci.RunnerThread()
th.callback | sensor.read | estimator.estimate | controller.steer | actuator.command
th.run()
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
ftprci-0.2.13.tar.gz
(9.3 kB
view hashes)
Built Distribution
ftprci-0.2.13-py3-none-any.whl
(11.0 kB
view hashes)