opiClose: Close using OPI

View source: R/opi.r

opiCloseR Documentation

Close using OPI

Description

Generic function for closing the chosen OPI implementation that is set with chooseOpi()

Usage

opiClose(...)

compass.opiClose()

display.opiClose()

daydream.opiClose()

imo.opiClose()

kowaAP7000.opiClose()

octo600.opiClose()

octo900.opiClose()

PhoneHMD.opiClose()

simG.opiClose()

Arguments

...

Implementation specific parameters. See details.

Value

Returns NULL if close succeeded, otherwise an implementation-dependent error.

Compass

Returns a list of err, which is an error code, and fixations, which is a matrix with three columns: time (same as time_hw in opiPresent), x (degrees relative to the centre of the image returned by opiInitialise - not the PRL), y (as for x), and one row per fixation.

Display

Shuts the display.

Daydream

DETAILS

imo

DETAILS

KowaAP7000

DETAILS

Octopus600

Always returns NULL

Octopus900

Returns NULL.

PhoneHMD

Closes the socket connection with the PhoneHMD

SimGaussian

DETAILS

See Also

chooseOpi

Examples

chooseOpi("SimGaussian")
if (!is.null(opiInitialize(sd=2)))
  stop("opiInitialize failed")
if (!is.null(opiClose()))
  stop("opiClose failed, which is very surprising!")

OPI documentation built on Nov. 7, 2023, 9:06 a.m.