Skip to main content

Python library for Marty the Robot V1 and V2

Project description

martypy

Python library to communicate with Marty the Robot V1 and V2 by Robotical

See the API Documentation

To regenerate documentation:

  • pip install -r dev-requirements.txt
  • pydoc-markdown --server --open OR, automatically:
  • run docgen.bat (or docgen.sh on Mac/Linux) from Python environment (will put the contents of the formatted docs into clipboard)

How to run example scripts

If you cloned the repository or downloaded the source code to try the example scripts, you will need to make sure you have MartyPy installed before you can run the examples.

The easiest way to install MartyPy is with the pip install martypy script as explained in step 2 here.

Once martypy is installed you can run each example using python. The following (for the dance example) assumes you have connected your marty using the USB cable to a Windows computer

python example_dance.py USB

To run the sound example over WiFi when your Marty is connected on IP address 192.168.86.10, use:

python example_sound.py WiFi 192.168.0.10

If you would like to make modifications to the martypy library itself, it will be better to install it from source using the command pip install --editable /path/to/martypy/repo (replacing /path/to/martypy/repo as appropriate of course).

If you do not want to "pip install" the MartyPy library, you can add the following 4 lines at the top (before any other code) of each script you want to run:

import sys
import pathlib
cur_path = pathlib.Path(__file__).parent.resolve()
sys.path.append(str(cur_path.parent.resolve()))

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

martypy-3.6.6.tar.gz (71.7 kB view details)

Uploaded Source

Built Distribution

martypy-3.6.6-py2.py3-none-any.whl (80.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file martypy-3.6.6.tar.gz.

File metadata

  • Download URL: martypy-3.6.6.tar.gz
  • Upload date:
  • Size: 71.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for martypy-3.6.6.tar.gz
Algorithm Hash digest
SHA256 ec9a7ecf3b373e60c0b4868e3231b6f3208a58eb73cb63c561590a9d0732ad39
MD5 d30c46fbd651f967e5542dc5e0f98c10
BLAKE2b-256 1061624e4b8c5f3f7b53a1b659be07f2ece37f5ef34dddb44d1fb65d5b100f1f

See more details on using hashes here.

File details

Details for the file martypy-3.6.6-py2.py3-none-any.whl.

File metadata

  • Download URL: martypy-3.6.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 80.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for martypy-3.6.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eb42a27deb41f5fc5e59c08f5f26b01a3ccf30db4c7c064920c7692eba71fb2d
MD5 72f3b96be11784057e3ed17f301c92a1
BLAKE2b-256 ce56b3c850a2032ded8ec74a894bdf1b91911e3fcf5a38d883ce5354303f26e6

See more details on using hashes here.

Supported by

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