Nothing Special   »   [go: up one dir, main page]

Skip to content

Haptic feedback system for use with robotic exoskeleton. This software allows you to virtually drum using the haptic device

Notifications You must be signed in to change notification settings

ayerun/VR_Haptics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VR Haptic Drum Kit

Author: Arun Kumar

Overview

This repository contains the software for a VR Haptic drum kit. Click Here For An In-Depth Project Summary

Hardware Dependencies

This software is meant for use with the Valve Index, SteamVR Base Station 2.0, and ODrive.

Software Dependencies

  • OpenXR
  • Vulkan
  • Eigen3
  • nuhal

File Structure

  • data
    • logged data from haptic experiments
    • each folder within data has a python script that is used to plot the csv files
  • drum
    • Pure Data drum synthesizer
    • samples used in synthesizer
  • include
    • graphics
    • haptics
      • header files for motor communication and haptic modeling
  • src
    • graphics
    • haptics
      • source files for motor communication and haptic modeling
  • vulkan_shaders
    • shaders for OpenXR program

Usage Instructions

  1. compile
    1. make build directory mkdir build
    2. change directory to build cd build
    3. build project cmake ..
    4. compile project make
  2. setup Odrive
    1. power ODrive and connect it to computer
    2. launch odrivetool in terminal odrivetool
    3. calibrate motor odrv0.axis0.requested_state=AXIS_STATE_FULL_CALIBRATION_SEQUENCE
    4. set motor in closed loop control odrv0.axis0.requested_state=AXIS_STATE_CLOSED_LOOP_CONTROL
      1. There is a bug in the ODrive ASCII protocol that prevents you from setting the state. These steps cannot be done through the motor communication library.
  3. launch drum_kit.pd pd {project}/drum/drum_kit.pd
  4. launch SteamVR
  5. put on haptice device
  6. place controller vertical in the location you want the snare drum
  7. run executable and pipe output to Pure Data {project}/build/drumkit | pdsend 8080

Executables

  • drumkit - haptic drum kit
    • arguement 1 - ODrive port name
    • if no arguements given, script uses the default port name
    • output must be piped to Pure Data through port 8080
  • encoder_spring - 1 degree of freedom spring using encoder feedback, see this for more details
    • argurement 1 - log file name
    • arguement 2 - port name
    • if no arguements given, script does not log data and uses the default port name
  • vr_spring - 1 degree of freedom spring using vr tracking feedback, see this for more details
    • argurement 1 - log file name
    • arguement 2 - port name
    • if no arguements given, script does not log data and uses the default port name

About

Haptic feedback system for use with robotic exoskeleton. This software allows you to virtually drum using the haptic device

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published