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
import time

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 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_basic_movement.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.5.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.5-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robodog-0.1.2.5.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.5.tar.gz
Algorithm Hash digest
SHA256 a2d65a93b9a81df3cbab31fb8de9e007b52c0c4782f99fd41db4cff98cb990da
MD5 801506eec39660d7dc4cce6c77eda894
BLAKE2b-256 544592244ab8d1112d3665bdde17cbae619119044a8a717c325d84e967d6052d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: robodog-0.1.2.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4776d392c5b1a0f6ae67f423526f1cf62a7aebf2027d62a6410219655a200a8e
MD5 c045b35f7e03df9177b2847961b92672
BLAKE2b-256 a9ae24e75224a8b5f0cda991f1a4256139327bce995b3bc307e281bd953613ed

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