Skip to main content

rcpy: Python 3 Interface for the Robotics Cape on the Beaglebone Black and the Beaglebone Blue

Release 0.5

This is a Python library with bindings for some of the functionality of the Robotics Cape library.

We only support Python 3, and are not interested in Python 2 at all.

Not all functions are supported. Currently supported functions are:

  1. MPU9250

  2. PWM motors

  3. Servos and ESCs

  4. Encoders

  5. LEDs

  6. Buttons

  7. GPIO inputs

  8. ADCs

You might also be interested in the pyctrl package (github, PyPI).

Preliminaries

You will need the Robotics Cape library version 0.3.4 or higher. Depending on the image you have on your Beaglebone Black or Blue it might already be installed! You can check if it is installed and the current version by running

rc_version

on your Beaglebone. If the command rc_version is not found type

sudo apt-get update
sudo apt-get install roboticscape

to install or

sudo apt-get update
sudo apt-get upgrade roboticscape

to upgrade from an older version. For more details see these instructions.

You must also have python3 installed. If you have not installed python3 yet type

sudo apt install python3 python3-pip

to install python3 and pip3.

Installation

Starting with version 0.5, rcpy relies on libgpiod for its gpio access. As of now, you have to manually install this library as follows.

Install some dependencies used by autoconf

sudo apt install autoconf-archive

Clone repo, build and make

git clone https://github.com/brgl/libgpiod
cd libgpiod
./autogen.sh --enable-tools=yes --enable-bindings-python --prefix=/usr/local
make
sudo make install

Move packages to /usr/local/lib/python3.5/dist-packages

sudo mv /usr/local/lib/python3.5/site-packages/* /usr/local/lib/python3.5/dist-packages/.

Install from PyPI

Starting with version 0.3, rcpy is available from PyPI. Just type

sudo pip3 install rcpy

to download and complete installation.

Documentation:

Author:

Mauricio C. de Oliveira

Metadata

Release files for rcpy 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rcpy 0.5.0
File Size Uploaded Provenance Actions
rcpy-0.5.0.tar.gz 15.7 kB Without provenance Details for rcpy-0.5.0.tar.gz

Release files / rcpy-0.5.0.tar.gz

Download URL rcpy-0.5.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
284eb03801f20419bea0ae06801b0ffdc9c7cc78dd6f711fdaa92546372dc0b5
BLAKE2b-256 checksum
How to use checksums
6a2cdffa2e950bb89f01517acd27816240716f471b23d79aae4f39e6037851df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for rcpy 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page