Skip to main content

A Python library for controlling AlphaDog robotic dogs

Project description

robodog

A Python library for controlling AlphaDog robotic dogs.

Features

  • Automated ROS connection management
  • Multiple control modes (standing, walking, dancing, etc.)
  • Real-time status monitoring
  • Dynamic parameter configuration
  • Elegant context manager support
  • Comprehensive error handling
  • Type annotation support

Installation

pip install robodog

Quick Start

  1. Ensure your computer is on the same network as the robotic dog
  2. Note the IP address of the robotic dog (default: 10.10.10.10)

Basic Example

from robodog import Dog
from robodog.config import UserMode
import time

# Connect to the dog using default IP
with Dog() as dog:
    # Switch to normal mode
    dog.set_user_mode(UserMode.NORMAL)
    
    # Adjust standing height
    dog.set_parameters({'body_height': 0.25})
    time.sleep(2)
    
    # Restore default height
    dog.set_parameters({'body_height': 0.23})

Core Features

  • Switch between user modes (normal, quiet, kids, etc.)
  • Adjust body posture (height, tilt, etc.)
  • Real-time status monitoring

Check the examples directory for more examples.

User Modes

Available user modes:

  • UserMode.NORMAL: Normal mode
  • UserMode.QUIET: Quiet mode
  • UserMode.KIDS: Kids mode
  • UserMode.EXTREME: Extreme mode
  • UserMode.DANCE: Dance mode
  • UserMode.MUTE: Mute mode
  • UserMode.LONG_ENDURANCE: Long endurance mode

Basic parameters:

  • body_height: Body height (default 0.23)
  • roll: Roll angle
  • pitch: Pitch angle
  • yaw: Yaw angle

Contributing

Issues and pull requests are welcome. For major changes, please open an issue first to discuss proposed changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For questions or suggestions:

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

robodog-0.1.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

robodog-0.1.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file robodog-0.1.1.tar.gz.

File metadata

  • Download URL: robodog-0.1.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for robodog-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3166d4ae7e0cda04df101066d3f8a23e020228e9c9eedee741154af8b4ebcd35
MD5 dc92247db6da48dd0468cb12390c2f5c
BLAKE2b-256 e0b24dd16dd38adf93f9bce14134bf61fe7cb9322d3e1a484c752859fc314f29

See more details on using hashes here.

File details

Details for the file robodog-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: robodog-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for robodog-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52846dc7a38de0186e91fa35a71bc217aafb9d7d7e5a176d8a607ed59b95d88c
MD5 963b71e1a082455e3e2eb6fe982c8b0d
BLAKE2b-256 31f358f8a03d0319dd9321269f8224e3dff4b124913573fea8141e596daaa40f

See more details on using hashes here.

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