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.0.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.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smarthome_robot-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 878154cd58add2d04ea7d1944940fa00817b302426d653e4ad5c4134a4b87517
MD5 bc740589d2bdb1318b8165d6decdcf0c
BLAKE2b-256 1fa6d806f123a06d7baa7084301097d12587de697ce78e2149e08193013cc7bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smarthome_robot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c71b1388d59f8a3f20209d58a979f487274cc73b2094d554b298a4396902fccd
MD5 42cb3119a852e0ba1217cbcb6d9b9677
BLAKE2b-256 42faae067632020d70b060f2b0f5896953585d08d2b318103ea50963ead82eed

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