Skip to main content

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:

Metadata

Release files for robodog 0.1.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for robodog 0.1.2.5
File Size Uploaded
robodog-0.1.2.5.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for robodog 0.1.2.5
File Interpreter ABI Platform
robodog-0.1.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 22.6 kB

Release files / robodog-0.1.2.5.tar.gz

Download URL robodog-0.1.2.5.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a2d65a93b9a81df3cbab31fb8de9e007b52c0c4782f99fd41db4cff98cb990da
BLAKE2b-256 checksum
How to use checksums
544592244ab8d1112d3665bdde17cbae619119044a8a717c325d84e967d6052d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release files / robodog-0.1.2.5-py3-none-any.whl

Download URL robodog-0.1.2.5-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4776d392c5b1a0f6ae67f423526f1cf62a7aebf2027d62a6410219655a200a8e
BLAKE2b-256 checksum
How to use checksums
a9ae24e75224a8b5f0cda991f1a4256139327bce995b3bc307e281bd953613ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release history Release notifications | RSS feed

This release

0.1.2.5 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page