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
  • markdown_mmd api-documentation-edited.md -t dokuwiki -o docs-wiki.wiki OR, automatically:
  • run docgen.bat (or docgen.sh on Mac/Linux) from Python environment (will also create a docs-wiki.wiki file with the dokuwiki format)

NOTE: Make sure pandoc is installed on your system to generate the dokuwiki documentation. You can install pandoc from here

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.7.2.tar.gz (72.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

martypy-3.7.2-py2.py3-none-any.whl (80.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: martypy-3.7.2.tar.gz
  • Upload date:
  • Size: 72.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for martypy-3.7.2.tar.gz
Algorithm Hash digest
SHA256 801030d367aca8b3cdbf4ce607a5da39386d07ff4aa22e27eb2dd62162de8285
MD5 55be971778b445e183ef879dd6338a83
BLAKE2b-256 ba619650cbbf917001e4db5a7bc2a5634cfd81f5054a31fe75d6dbffca7cde1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for martypy-3.7.2.tar.gz:

Publisher: build-publish.yml on robotical/martypy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: martypy-3.7.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 80.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for martypy-3.7.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 51a2af12359d980b8a77153369d0124c6e41ebe8a945c16b05799a676d1e58f2
MD5 1a95c2176aecf5e1cf30f6c40e3f6ff1
BLAKE2b-256 2ae89437a0c36c42dfdbadde41117563ad686d68ea4ffec05ad39ead602d7992

See more details on using hashes here.

Provenance

The following attestation bundles were made for martypy-3.7.2-py2.py3-none-any.whl:

Publisher: build-publish.yml on robotical/martypy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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