Metadata-Version: 2.4
Name: smarthome_robot
Version: 0.1.3
Summary: Helper library for Smart Home League
Author-email: Sina Arshad <sina.arshad@hotmail.com>
License: MIT
Project-URL: Homepage, https://github.com/smart-home-league/smarthome_robot
Project-URL: Issues, https://github.com/smart-home-league/smarthome_robot/issues
Keywords: robot,webots,smart-home,league
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Dynamic: license-file

# smarthome-robot

Helper library for Smart Home League.

## Install

```bash
pip install smarthome_robot
```

## Usage

```python
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.
