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

Uploaded Python 3

File details

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

File metadata

  • Download URL: robodog-0.1.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 991fbbbd3339b3c678a989cc1f6ec1877eaf1598e0d323c3393e4e202f117e09
MD5 ff5bcaf774a1be886f9dc9a0f00e72b4
BLAKE2b-256 804694d4084de8ecd2cc9207863b3b8d19a3954f605b352832697f5cc4694655

See more details on using hashes here.

File details

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

File metadata

  • Download URL: robodog-0.1.2.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f6cd0bc1a9e8abef173b609d41bf038683b65b38c565d7bafca5c7a7adc37aa6
MD5 f10badff3dc1781c8578a156d11f0616
BLAKE2b-256 504c43349b5f73c0204fe1a49bbea56770ab7c1db86b66a4963a3b662bb76269

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