Skip to content

Configuring the Driver

danwillm edited this page May 2, 2021 · 7 revisions

Configuring the driver is a necessary requirement to getting the glove to work. This configuration file is located in lucidgloves/resources/settings/default.vrsettings and provides configuration options for customising the behaviour of the driver.

Below is what the structure of the configuration should look like:

{
	"driver_openglove": {
		"left_enabled": true,
		"right_enabled": true,
		"communication_protocol": 0,
		"device_driver": 1,
		"encoding_protocol": 0
	},
	
	//device_driver = 0
	"device_lucidgloves": {
		"left_serial_number": "lucidgloves-left",
		"right_serial_number": "lucidgloves-right"
	},
	
	//device_driver = 1
	"device_knuckles": {
		"left_serial_number": "LHR-E217CD00",
		"right_serial_number": "LHR-E217CD01"
	},
	
	"pose_settings": {
		"right_x_offset_position": -0.10,
		"right_y_offset_position": -0.08,
		"right_z_offset_position": -0.03,
		
		"right_x_offset_degrees": -40,
		"right_y_offset_degrees": 0,
		"right_z_offset_degrees": 0,
		
		"left_x_offset_position": 0.10,
		"left_y_offset_position": -0.08,
		"left_z_offset_position": -0.03,
		
		"left_x_offset_degrees": -40,
		"left_y_offset_degrees": 0,
		"left_z_offset_degrees": 0,
		
		"pose_offset": -0.01,

		"controller_override": false,
		"controller_override_left": 3,
		"controller_override_right": 4
	},
	
	//communication_protocol = 0
	"communication_serial": {
		"left_port": "\\\\.\\COM4",
		"right_port": "\\\\.\\COM5"
	},
	
	//encoding_protocol = 0
	"encoding_legacy": {
		"max_analog_value": 1023
	}
}

Notably:

  • You will almost certainly need to edit left_port and right_port in the configuration (under communication_serial)
  • You can configure the offsets of the glove from the controller it is tracking (under pose_settings)
  • You can choose whether to emulate knuckle controllers, or use the lucidglove controllers (knuckle emulation is default, and preffered by most games)

Note to Vive Users!

Vive wands behave differently to other controllers, and so need to (temporarily) be configured slightly differently, by overriding the ids for what to track

  • First install the driver and launch SteamVR. You'll notice there are two new controllers which are greyed out
  • In the configuration, set controller_override to true.
    • To find the ids for the controllers, count upwards from 0 (including the headset) in the devices list in the SteamVR app.
      explanation
    • Set controller_override_left and controller_override_right to the ids. (For example, they might be 5 & 6 as shown in the image above, but they can vary).
  • Saving and restarting SteamVR should colour the controllers and the gloves should now be tracking with the controllers.

Clone this wiki locally