Skip to main content

dora-mujoco-husky

Project description

dora-mujoco-husky

A MuJoCo-based Clearpath Husky simulation node for the Dora framework. This node provides a physics-accurate simulation of the Husky robot that can be controlled via velocity commands.

Features

  • Real-time physics simulation using MuJoCo
  • Accurate Husky robot model with proper inertial properties
  • Velocity-based control interface
  • Position and velocity feedback
  • Gamepad control support

Getting Started

Prerequisites

  • Python 3.8 or higher
  • MuJoCo 3.1.6 or higher

Installation

  1. Create and activate a Python virtual environment:
uv venv -p 3.11 --seed
source .venv/bin/activate
  1. Install the package:
uv pip install -e .

Running the Demo

  1. Make sure you have a gamepad connected
  2. Build the demo:
dora build demo.yml --uv
  1. Run the demo:
dora run demo.yml --uv

Usage

The node accepts velocity commands and outputs position/velocity data:

Inputs

  • cmd_vel: Velocity command array with the format:
    • Index 0: Linear velocity (m/s), range: [-2.0, 2.0]
    • Index 5: Angular velocity (rad/s), range: [-3.0, 3.0]

Outputs

  • position: Robot position [x, y, z] in world coordinates
  • velocity: Robot velocity [vx, vy, vz] in world coordinates

Example Configuration

nodes:
  - id: mujoco_husky
    build: pip install -e .
    path: dora-mujoco-husky
    inputs:
      cmd_vel: input_source/cmd_vel
    outputs:
      - position
      - velocity

Development

Code Formatting

Format code using ruff:

uv pip install ruff
uv run ruff check . --fix

Linting

Run linting checks:

uv run ruff check .

Testing

Run tests using pytest:

uv pip install pytest
uv run pytest .

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Based on the Clearpath Robotics Husky robot
  • Uses the MuJoCo physics engine
  • Built with the Dora framework

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

dora_mujoco_husky-0.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dora_mujoco_husky-0.2.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file dora_mujoco_husky-0.2.0.tar.gz.

File metadata

  • Download URL: dora_mujoco_husky-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for dora_mujoco_husky-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5f1c56af1c1b3ac9c3e8713ea091ef734b80ad212808d3829c4052648998188c
MD5 7008cb5ed319cda92e023546a1b46102
BLAKE2b-256 36952c4e7e9e9fc97d05afbc0568c7ecfe72f1f3a2d7ef8a2ef3f1bbe404da20

See more details on using hashes here.

File details

Details for the file dora_mujoco_husky-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dora_mujoco_husky-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6fbcfa643eba7b70290f06e42edb469bea098fbef7f2015fb99e2ea57506e35
MD5 2017ba09abfcceea5dd3ae47b3d90e6e
BLAKE2b-256 dd46ffb7372f4f0e515bf0f127d587c8af780df85a92a5697c41906edeffc71b

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