
Version: 0.1.2
Author: @sadra-hub
License: MIT
Python Version: 3.8+
Description
alphabot-interface
provides a modular and simple Python interface for interacting with key components of the Waveshare AlphaBot 2 platform, including:
- Camera module (using Picamera2)
- Battery monitoring
- Motor control
alphabot-interface
is a lightweight Python package that lets you comfortably use various components of the AlphaBot platform and write clean, readable, and modular code.
This package is designed to abstract hardware-level interactions so developers and students can focus on high-level robotics programming and deply swarm intelligence algorithms
Installation
You can install the package via pip
:
pip install alphabot-interface
Usage
This package let you comfortably use various components of AlphaBot and write clean, readable code.
from alphabot_interface import Camera, Battery, Motor
camera = Camera()
battery = Battery()
motor = Motor()
target_x = 100
target_y = 0
DURATION = 3
motor.move(target_x, target_y, DURATION)
battery_status = battery.get_status()
camera.take_picture("output.jpg")
camera.get_objects()