Skip to main content

Python Module of the DataGlove API.

Project description

BeBop Sensors Forte Data Glove

Python Module of the DataGlove API

Simple Setup:

from dataglove import *

leftHand = Forte_CreateDataGloveIO(1) # 0 for right-handed glove
try:
	while True:
		sensors = Forte_GetSensors(leftHand)
		imu = Forte_GetIMU(leftHand)
		print(sensors)
		print(imu)
except(KeyboardInterrupt):
	Forte_DestroyDataGloveIO(leftHand)
	exit()

Core API Functions

  • Forte_CreateDataGloveIO(handType)
  • Forte_DestroyDataGloveIO(dataGloveIO)
  • Forte_GetIMU(dataGloveIO)
  • Forte_GetSensors(dataGloveIO)
  • Forte_GetBatteryLevel(dataGloveIO)
  • Forte_GetConnectionState(dataGloveIO)
  • Forte_GetHandType(dataGloveIO)
  • Forte_UploadFile(dataGloveIO, filePath, slot)
  • Forte_EnterBootloaderMode(dataGloveIO)
  • Forte_SetGloveDisplayID(dataGloveIO)
  • Forte_GetFullReport(dataGloveIO)

Raw Sensors/Fingers Functions

  • Forte_GetSensorRaw(dataGloveIO, index)
  • Forte_GetSensorsRaw(dataGloveIO)
  • Forte_GetFingerRaw(dataGloveIO, index)
  • Forte_GetFingersRaw(dataGloveIO)

Normalized Sensors/Fingers Functions

  • Forte_GetSensorNormalized(dataGloveIO, index)
  • Forte_GetSensorsNormalized(dataGloveIO)
  • Forte_GetFingerNormalized(dataGloveIO, index)
  • Forte_GetFingersNormalized(dataGloveIO)

Raw/Normalized Finger Sum Functions

  • Forte_GetFingersSumRaw(dataGloveIO)
  • Forte_GetFingersSumNormalized(dataGloveIO)

Haptics Functions

  • Forte_SendHaptic(dataGloveIO, actuatorID, note, amplitude)
  • Forte_SendOneShotHaptic(dataGloveIO, actuatorID, note, amplitude)
  • Forte_SendLoopHaptic(dataGloveIO, actuatorID, note, amplitude)
  • Forte_ToggleOneShot(dataGloveIO, actuatorID, makeOneShot)
  • Forte_SelectHapticWave(dataGloveIO, actuatorID, waveform)
  • Forte_SetGrainLocation(dataGloveIO, actuatorID, location)
  • Forte_SetAmplitude(dataGloveIO, actuatorID, amplitude)
  • Forte_SetPitchBend(dataGloveIO, actuatorID, pitch)
  • Forte_SetGrainSize(dataGloveIO, actuatorID, size)
  • Forte_SetGrainFade(dataGloveIO, actuatorID, fade)
  • Forte_ToggleHapticsOn(dataGloveIO, turnOn)
  • Forte_SilenceHaptics(dataGloveIO)

Calibration Functions

  • Forte_CalibrateFlat(dataGloveIO)
  • Forte_CalibrateFingersIn(dataGloveIO)
  • Forte_CalibrateThumbIn(dataGloveIO)
  • Forte_LoadCalibration(dataGloveIO, slot)
  • Forte_SaveCalibration(dataGloveIO, slot)
  • Forte_ResetCalibration(dataGloveIO)

Device Info Functions

  • Forte_GetHardwareRev(dataGloveIO)
  • Forte_GetHardwareVersion(dataGloveIO)
  • Forte_GetSAMDBootloaderVersion(dataGloveIO)
  • Forte_GetSAMDAppletVersion(dataGloveIO)
  • Forte_GetBLESoftDeviceVersion(dataGloveIO)
  • Forte_GetBLEBootloaderVersion(dataGloveIO)
  • Forte_GetBLEAppletVersion(dataGloveIO)

Conversion and Rotation Functions

  • Forte_HomeIMU(dataGloveIO)
  • Forte_GetQuaternionRaw(dataGloveIO)
  • Forte_GetQuaternionNormalized(dataGloveIO)
  • Forte_GetEulerAngles(dataGloveIO)
  • Forte_GetAxisAngle(dataGloveIO)
  • Forte_GetRotationMatrix(dataGloveIO)
  • Forte_GetSphericalCoordinates(dataGloveIO)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dataglove, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size dataglove-0.0.10-py3-none-any.whl (256.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size dataglove-0.0.10.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page