Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dataglove

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dataglove

64-bit Python Module of the DataGlove API.

  • 0.3.0
  • PyPI
  • Socket score

Maintainers
1

BeBop Sensors Forte Data Glove

64-bit Python Module of the DataGlove API

Prerequisite:

64-bit version of Python

Simple Setup:

from dataglove import *

leftHand = Forte_CreateDataGloveIO(1, "") # 0 for right-handed glove
try:
	while True:
		try:
			sensors = Forte_GetSensors(leftHand)
			imu = Forte_GetIMU(leftHand)
			print(sensors)
			print(imu)
		except(GloveDisconnectedException):
			print("Glove is Disconnected")
			pass
except(KeyboardInterrupt):
	Forte_DestroyDataGloveIO(leftHand)
	exit()
Core API Functions
  • Forte_CreateDataGloveIO(handType, bleScanName)
  • 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, soundChannel=0)
  • Forte_SetGrainLocation(dataGloveIO, actuatorID, location, soundChannel=0)
  • Forte_SetAmplitude(dataGloveIO, actuatorID, amplitude)
  • Forte_SetPitchBend(dataGloveIO, actuatorID, pitch, soundChannel=0)
  • Forte_SetGrainSize(dataGloveIO, actuatorID, size, soundChannel=0)
  • Forte_SetGrainFade(dataGloveIO, actuatorID, fade, soundChannel=0)
  • Forte_SilenceHaptics(dataGloveIO)
Old Haptics Functions
  • Forte_SendHaptic_OLD(dataGloveIO, actuatorID, note, amplitude)
  • Forte_SendOneShotHaptic_OLD(dataGloveIO, actuatorID, note, amplitude)
  • Forte_SendLoopHaptic_OLD(dataGloveIO, actuatorID, note, amplitude)
  • Forte_ToggleOneShot_OLD(dataGloveIO, actuatorID, makeOneShot)
  • Forte_SelectHapticWave_OLD(dataGloveIO, actuatorID, waveform)
  • Forte_SetGrainLocation_OLD(dataGloveIO, actuatorID, location)
  • Forte_SetAmplitude_OLD(dataGloveIO, actuatorID, amplitude)
  • Forte_SetPitchBend_OLD(dataGloveIO, actuatorID, pitch)
  • Forte_SetGrainSize_OLD(dataGloveIO, actuatorID, size)
  • Forte_SetGrainFade_OLD(dataGloveIO, actuatorID, fade)
  • Forte_SilenceHaptics_OLD(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)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc