Skip to main content

Helper library for Smart Home League

Project description

smarthome-robot

Helper library for Smart Home League.

Install

pip install git+https://github.com/smart-home-league/smarthome_robot.git

Usage

from smarthome_robot import RobotU14, RobotU19

# U14
robot = RobotU14(team_name="My Team")
robot.left_motor = 10.0
robot.right_motor = 10.0
val = robot.distance_front_left

# U19
robot = RobotU19(team_name="My Team")
x, y, z = robot.gps
roll, pitch, yaw = robot.imu

Value properties: bumper_left, bumper_right, distance_front_left, distance_front_right, distance_left, distance_right, left_motor, right_motor, left_encoder, right_encoder, led_on, led_play, led_step. Motors and LEDs have setters. Raw devices: _left_motor, _bumpers, _distance_sensors, etc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smarthome_robot-0.1.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smarthome_robot-0.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file smarthome_robot-0.1.1.tar.gz.

File metadata

  • Download URL: smarthome_robot-0.1.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for smarthome_robot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e8ddf9149b7c243c46472c9b1331308126c9429fb8c92d47bef01a409d44106c
MD5 1f834b07c25f46a7c53af09947fe9d22
BLAKE2b-256 dfc002f54a0efb13c5a1ad8842a094c6f638c29a10fb7d35e0b30218c8e4ce4e

See more details on using hashes here.

File details

Details for the file smarthome_robot-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for smarthome_robot-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d21627ca0ea94f293f25e76eebf3f09afb10b1c38bd4ced95f5895fbeb2eb8a
MD5 cba8a63b757d4c5c75aafee29e67bf05
BLAKE2b-256 0723a96aa3ff24fad6ce467d445b78e7c2198010c88104647995521bda76baa4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page