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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dora_mujoco_husky-0.5.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dora_mujoco_husky-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e68b85f2160edc6ed10a72f3aa51ed791987bbb9ba0aa2ec820d461431593436
MD5 a180fe4fab81b000bd0454efe557b6d3
BLAKE2b-256 adafc327249c112954c18243904a82770caded43af3d8980e5b7ccf69a86e664

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dora_mujoco_husky-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dora_mujoco_husky-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6afb8bbf103d9c6511b112f9ebc7e8283db30179741f98e8d22ab356f430b1b8
MD5 ab5e919dc0a30a318fd8b50ed9f1deca
BLAKE2b-256 d380f9bd3d0225d0349d343b340c186930507a28b8cbc484bc95bb041be7a9db

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