Rcpy
Python Library for Robotics Cape on Beaglebone Black and Beaglebone Blue
Install / Use
/learn @mcdeoliveira/RcpyREADME
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:
- MPU9250
- PWM motors
- Servos and ESCs
- Encoders
- LEDs
- Buttons
- GPIO inputs
- 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:
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
