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.0.tar.gz (8.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.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robodog-0.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for robodog-0.1.0.tar.gz
Algorithm Hash digest
SHA256 30ede00ec1ed6155fd6ddb677d1fbf6d2727db48bb7c2c780768633cb782772d
MD5 1888a6a32a5b5fb9d7c02ef55dc1774c
BLAKE2b-256 d8b24ae9c95630ee0ea69bfd0d39a02686cb3bef262bfbd3002b1baa70ec1708

See more details on using hashes here.

File details

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

File metadata

  • Download URL: robodog-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for robodog-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 786839020ae5db5f75d8998004ea7eb66754f7ca928c6186a3beb287ae1072f4
MD5 79bf8ce236b3060e2a19f3e9b036986c
BLAKE2b-256 0f9624d1afe0d623230d8fb2dfd1a4b49a2dfdd44b6724e5ae8a1994747c3f90

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