Skip to main content

A Python library for controlling AlphaDog robotic dogs

Project description

RoboDog SDK

English | 中文

Python SDK for AlphaDog robotic dog control.

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

with Dog() as dog:
    # Adjust standing height
    dog.body_height = 0.25
    time.sleep(2)
    
    # Restore default height
    dog.set_parameters({'body_height': 0.23})

Parameter Control Features

The SDK provides comprehensive parameter control capabilities:

1. Basic Motion Parameters

dog.vx = 0.2    # Forward velocity (-1.0 to 1.0)
dog.vy = 0.1    # Lateral velocity (-1.0 to 1.0)
dog.wz = 0.1    # Rotational velocity (-1.0 to 1.0)

2. Posture Control

dog.roll = 0.1          # Roll angle (-0.5 to 0.5)
dog.pitch = 0.1         # Pitch angle (-0.5 to 0.5)
dog.yaw = 0.1           # Yaw angle (-0.5 to 0.5)
dog.body_height = 0.25  # Body height (0.1 to 0.35)

3. Gait Parameters

dog.foot_height = 0.08     # Foot lift height (0.0 to 0.15)
dog.swing_duration = 0.3   # Swing period (0.1 to 1.0)
dog.friction = 0.6         # Friction coefficient (0.1 to 1.0)

4. Advanced Control Features

Combined parameter settings:

# Set gait parameters
dog.set_gait_params(
    friction=0.6,  # Friction coefficient
    scale_x=1.2,   # Support surface X scaling
    scale_y=1.0    # Support surface Y scaling
)

# Set motion parameters
dog.set_motion_params(
    swaying_duration=2.0,  # Swaying period
    jump_distance=0.3,     # Jump distance
    jump_angle=0.1         # Jump rotation angle
)

# Set control parameters
dog.set_control_params(
    velocity_decay=0.8,        # Velocity decay
    collision_protect=1,       # Collision protection
    decelerate_time=2.0,      # Deceleration delay
    decelerate_duration=1.0    # Deceleration duration
)

Example Programs

Check out examples/demo_all_params.py for a complete demonstration including:

  • Basic motion control demo
  • Advanced motion parameter adjustment
  • Complete parameter configuration showcase
  • User mode switching demonstration

Running the example:

python examples/demo_all_params.py

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.2.2.tar.gz (11.2 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.2.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robodog-0.1.2.2.tar.gz
  • Upload date:
  • Size: 11.2 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.2.2.tar.gz
Algorithm Hash digest
SHA256 e265e129ad78edee7856971adb78127183bf4849dbe14d6828edae4c4f3ce204
MD5 4e77cc1127bea77b6f4171d6eb906114
BLAKE2b-256 1fc6f3f550696402c0ba8ac88f99878c93d8a48347c26691b5b8b408e9e2e682

See more details on using hashes here.

File details

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

File metadata

  • Download URL: robodog-0.1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 642deb9083c7c80cee2169adf57ac9ce00bcd18863a4bb5a1d21c7af489f8c71
MD5 4128dbfb00ee4dd3fe02446822d164dc
BLAKE2b-256 0c600f6d14039b6d20667229a4568c375a8bbd04765f07d7ca6f7bcd0dfe50a1

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