Communicating with Mote
Project description
mote_link
Python client for talking to Mote robots over the network.
mote_link handles discovery (via mDNS), connection, and message serialization / deserialization.
Installation
pip install mote_link
Example
import asyncio
from mote_link.link import MoteClient, SetDriveBaseVelocity, DriveBaseState
async def main():
async with MoteClient() as mote:
# Opens an interactive prompt if the robot's IP or UID isn't known.
await mote.connect()
# Drive both wheels forward.
await mote.send(SetDriveBaseVelocity(left_velocity_rad=1.0, right_velocity_rad=1.0))
# Read messages from the robot.
message = await mote.recv()
if isinstance(message, DriveBaseState):
print(f"left: {message.left}, right: {message.right}")
asyncio.run(main())
Documentation
See the Mote documentation for hardware setup, configuration, and the full API reference.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mote_link-0.0.1.tar.gz.
File metadata
- Download URL: mote_link-0.0.1.tar.gz
- Upload date:
- Size: 177.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73f2d37c21fb6cf19c21daffa34a4d592ca0c08a987a02c02b7c64148d1425ae
|
|
| MD5 |
3ab24552540574d9bc835dbd21c3930b
|
|
| BLAKE2b-256 |
fc5502d9cdc18f52a6c1a384d42a7bc542fa3b16cc512b0e5700ab8c1c25c1e5
|
File details
Details for the file mote_link-0.0.1-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: mote_link-0.0.1-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 241.5 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f9d7653b4410c6a3b0d8912e36b9c8d78a37e5af9cd4911634241343ba24b42
|
|
| MD5 |
241ec1222b77167140f2361ffedcc2be
|
|
| BLAKE2b-256 |
e96cbc608d1a88b7448e4421d6150589c1fb179adff1b1dff3b8af7abc2d153d
|
File details
Details for the file mote_link-0.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: mote_link-0.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 405.8 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4adb5e03d97845da2e2dfc1fcc5fa29b6fef9f4471557a074b139fb0eb9fe80a
|
|
| MD5 |
20c07bd76965429f1ca3e203584b602d
|
|
| BLAKE2b-256 |
6ae5d652a89789df9e562991732dbfaf10bdeeddc89f0bbc19930c2423d99132
|
File details
Details for the file mote_link-0.0.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: mote_link-0.0.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 384.7 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c64ab8a6e3b3e96d72ba797a69f51ae1da648cb9da2f939f53d6fd791bd8611
|
|
| MD5 |
ae81ee04569aca5d0e40598afc5faee9
|
|
| BLAKE2b-256 |
d6393d1fc26a4c0e52ac14bea55fa1c20dc80768f9fc2d40297192b27f3390c3
|
File details
Details for the file mote_link-0.0.1-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: mote_link-0.0.1-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 347.6 kB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55cff3d11b1e64dfa49f1b95f5d1924beae15fcfe9b5599ca9af15fabe7b87e1
|
|
| MD5 |
f5fc3fad1deb7cae588277ad56ec15ff
|
|
| BLAKE2b-256 |
0a6bb34351354d0aa6926f238a4ae6ddfac5182043667a18dd0b25511b2f6f4c
|
File details
Details for the file mote_link-0.0.1-cp38-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: mote_link-0.0.1-cp38-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 352.5 kB
- Tags: CPython 3.8+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36baeff792f79597f2dc22a7176a26afcfd025e60c1971eab1cb731f9e4bd7fa
|
|
| MD5 |
421466ff2315c74dfb69febab8fa9d7e
|
|
| BLAKE2b-256 |
6ce139e42abeeead88a490797128813a21b17ac6fb9e49a5c12f7a590123fcd2
|