Skip to main content

Core Python Controller of the ORCA Hand. Handles all hardware interaction, logic and abstracts control. Provides API for basic functionality and info of the hand.

Project description

arXiv Discord Twitter Follow Website
GitHub stars Tests

Orca Core is the core control package of the ORCA Hand. It's used to abstract hardware, provide scripts for calibration and tensioningm and to control the hand with simple high-level control methods in joint space.

Get Started

To get started with Orca Core, follow these steps:

  1. Create a virtual environment (recommended):

    python -m venv venv
    source venv/bin/activate
    

    You can also use Poetry, pyenv, conda, or any other environment manager if you prefer.

  2. Install dependencies:

    pip install -e .
    
  3. Check the configuration file:

    • Review the config file (e.g., orca_core/orca_core/models/orcahand_v1_right/config.yaml) and make sure it matches your hardware setup.
  4. Run the tension and calibration scripts:

    python scripts/tension.py orca_core/orca_core/models/orcahand_v1_right
    python scripts/calibrate.py orca_core/orca_core/models/orcahand_v1_right
    

    Replace the path with your specific hand model folder if needed.

  5. Move the hand to the neutral position:

    python scripts/neutral.py orca_core/orca_core/models/orcahand_v1_right
    
  6. Example usage: test.py

    Here is a minimal example script you can use to test your setup:

    from orca_core import OrcaHand
    import time
    
    hand = OrcaHand('orca_core/orca_core/models/orcahand_v1_right')
    status = hand.connect()
    print(status)
    if not status[0]:
        print("Failed to connect to the hand.")
        exit(1)
    
    hand.enable_torque()
    
    joint_dict = {
        "index_mcp": 90,
        "middle_pip": 30,
    }
    
    hand.set_joint_pos(joint_dict, num_steps=25, step_size=0.001)
    
    time.sleep(2)
    hand.disable_torque()
    hand.disconnect()
    

Note:

  • Always ensure your config.yaml matches your hardware and wiring.
  • All scripts in the scripts/ folder take the model path as their first argument.
  • For more advanced usage, see the other scripts and the API documentation.

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

orca_core-1.0.0.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

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

orca_core-1.0.0-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file orca_core-1.0.0.tar.gz.

File metadata

  • Download URL: orca_core-1.0.0.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.5.0

File hashes

Hashes for orca_core-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2e2b941149718d8eafbf664d45522f8e23a8b358e305e60d145248630c50cf74
MD5 4ace954cb678d385bfdca96b4fba98db
BLAKE2b-256 fbc9e1a0ca16abe21249dcd55c1d8da1babcce8591ef639592c6cb86016d86f6

See more details on using hashes here.

File details

Details for the file orca_core-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: orca_core-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.5.0

File hashes

Hashes for orca_core-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ef76d86856607a3f52f142de688f6782c5274a4c64e60f95ff6470874115c3c
MD5 87b7eeae653aba2972c1e2705038032a
BLAKE2b-256 03ce4415b98e2e0863eb7857ef80bf67fd8f878d18638ec5e213a145abf9e1f8

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