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
Add the demo extra (pip install mote_link[demo]) to also install rerun-sdk and
pyglet, needed only by the bundled rerun-demo example.
Example
import asyncio
from mote_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_per_s=1.0, right_velocity_rad_per_s=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.
Metadata
Release files for mote-link 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mote_link-0.2.0.tar.gz | 204.1 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| mote_link-0.2.0-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details |
| mote_link-0.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| mote_link-0.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| mote_link-0.2.0-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details |
| mote_link-0.2.0-cp38-abi3-macosx_10_12_x86_64.whl | CPython 3.8 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 1.8 MB
Release files / mote_link-0.2.0.tar.gz
| Download URL | mote_link-0.2.0.tar.gz |
|---|---|
| Size | 204.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
871ca6308d07f4f1a075cbb1dca2ee7418afd56d96509e01d0b0ebc8fe028d4c
|
|
BLAKE2b-256 checksum How to use checksums |
fc7dd0190d83e8bb57f3bcd215d9de0d7a1c4fc46757204b050561370054d22d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.14.1
|
Release files / mote_link-0.2.0-cp38-abi3-win_amd64.whl
| Download URL | mote_link-0.2.0-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 214.4 kB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4984fba6830993e42efcd3e292dddae72a004c734c39a398c033d1a3cf10c052
|
|
BLAKE2b-256 checksum How to use checksums |
dfb057728cd486f79680c20d1c47502343c8209dcba46ac03050ed8454b8cc8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.14.1
|
Release files / mote_link-0.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | mote_link-0.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 374.2 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
3237e03daef378bbd1e34dc79cb44ad67e4eac5fbebc93f4048a5ca7184534ae
|
|
BLAKE2b-256 checksum How to use checksums |
fbb4fec03cf6839ad0afe3bca3bd1239fd2a25f869ce8c69b746f198711adf27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.14.1
|
Release files / mote_link-0.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | mote_link-0.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 356.7 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
bf5e5ff2de327b3bf3c996fd610ba2bdf7f21acab5ce51dba23ad99ad27fe8e4
|
|
BLAKE2b-256 checksum How to use checksums |
6d473272ab04f9f1e6f1569c605963bf423b485eafaed9bbe763cd5e96570c08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.14.1
|
Release files / mote_link-0.2.0-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | mote_link-0.2.0-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 317.4 kB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
379df9d12a1115d2f86acf903493aa91b04c4e658afbdd19c03d7572c43ed658
|
|
BLAKE2b-256 checksum How to use checksums |
9edc902d60324417bb81fc2550f8db6ee4af6b4306bf79f0809f5ebd3e1380f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.14.1
|
Release files / mote_link-0.2.0-cp38-abi3-macosx_10_12_x86_64.whl
| Download URL | mote_link-0.2.0-cp38-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 323.4 kB |
| Tags | CPython 3.8 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
8b4828fc412a2c1ac91dd90ad2215cc0996dd73f54583c4ec432e6be9b32ed4c
|
|
BLAKE2b-256 checksum How to use checksums |
f095630162d234273a100c0421c7a134799bc74891f905c28a39d57ba646a2de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.14.1
|