Metadata-Version: 2.2
Name: haptic_harness_generator
Version: 0.0.41
Summary: Software to easily generate parameterized tiles for haptic harnesses
Author: kaleFruit
Project-URL: Homepage, https://github.com/HaRVI-Lab/haptic-harness
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: pyvista>=0.43.6
Requires-Dist: ezdxf
Requires-Dist: PyQt5
Requires-Dist: pyvistaqt
Requires-Dist: PyQtWebEngine
Requires-Dist: markdown

# Haptic Harness Toolkit Generator

A software to easily generate parameterized tiles for haptic harnesses
<p align="center">
 <img src = "https://github.com/HaRVI-Lab/haptic-harness/raw/main/images/hexagonExploded.jpg" alt = "Exploded view of hexagonal tile" width="30%">
 <img src = "https://github.com/HaRVI-Lab/haptic-harness/raw/main/images/flatView.jpg" alt = "Flat view of tile" width="30%">
 <img src = "https://github.com/HaRVI-Lab/haptic-harness/raw/main/images/squareExploded.jpg" alt = "Exploded view of square tile" width="30%">
</p>

## Description

-   This software allows researchers to create an easy haptic harness by generating a tile solution
-   Researchers can change harness parameters to meet their needs

## Getting Started

Setting up a new Conda environment through the ternminal with the correct dependencies:

1. Create a new conda environment with Python 3.9 using: `conda create -n hapticHarnessGenerator python=3.9 vtkbool vtk -c conda-forge`
> [!WARNING]  
> vtkbool through conda-forge is only availabe on win64, linux64, and osx64. Please see: https://github.com/zippy84/vtkbool  
> Therefore, please select the correct platform for the conda environment like this example for mac: `conda create -n hapticHarnessGenerator python=3.9 vtkbool vtk -c conda-forge --platform osx-64`
2. Run: `conda activate hapticHarnessGenerator`
3. Install the haptic harness generator with: `pip install haptic_harness_generator`
4. Run the program from your cli with: 
   -   `run-haptic-harness --export-dir [your absolute path]`
   -   Ex. (for Windows) `run-haptic-harness --export-dir C:\Users\Me\Downloads` 


## Software Operation

1. Change parameters in the "Generate Tiles" tab
2. In the "Generaet Tiles" tab, click "Generate Parts" to generate the .dxf and .stl files
3. Generated files can be found in the "exports" directory
<p align= "center">
    <img src = "https://github.com/HaRVI-Lab/haptic-harness/raw/main/images/hapticsLandscape.jpg" alt = "Diagram view" width="76%">
</p>


## Hardware Operation
### Materials
- Tyvek: will be cut for the tiles
- EVA foam: will be cut for the liner
- Hardboard (or comparable material): will be cut for the magnet ring
- Hard 3D printable material (ex. PLA): will be print for peripheral items
### Tile Assembly
-   After files are generated, they will be exported as:
    -   .dxf files to be cut on a laser cutter (.dxf files can be converetd online or in software like Adobe Illustrator)
    -   .stl files to be 3D-printed
-   A tile is constructed by supergluing the cut parts as shown below: 
<p align="center">
    <img src = "https://github.com/HaRVI-Lab/haptic-harness/raw/main/images/diagramOne.jpg" alt = "Diagram view" width="50%">
</p>

## Dependencies:

-   Pyvista
-   vtkbool
-   ezdxf
-   Numpy
-   PyQT5
-   pyvistaqt
