Class IMUSession
- java.lang.Object
-
- com.sfu_3dlg_hcvc.multiscan.a3dscannerapp.imu.IMUSession
-
public class IMUSession extends java.lang.Object
An IMUSession class that is used to retrieve sensor information
-
-
Field Summary
Fields Modifier and Type Field Description java.util.HashMap<java.lang.String,java.lang.String>
fullNames
java.lang.String[]
ids
private static java.lang.String
LOG_TAG
private float[]
mAcceBias
private VideoCaptureActivity
mContext
FileStreamer
mFileStreamer
static int
mFrequency
private float
mInitialStepCount
java.util.concurrent.atomic.AtomicBoolean
mIsRecording
private java.util.concurrent.atomic.AtomicBoolean
mIsWritingFile
java.util.HashMap<java.lang.String,java.lang.Integer>
mSensorCounter
private SensorManager
mSensorManager
private java.util.HashMap<java.lang.String,Sensor>
mSensors
java.util.HashMap<java.lang.String,java.lang.String>
shortNames
-
Constructor Summary
Constructors Constructor Description IMUSession(VideoCaptureActivity context)
Each sensor has a specific file writer under file streamer instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isRecording()
void
onAccuracyChanged(Sensor sensor, int accuracy)
void
onSensorChanged(SensorEvent event)
void
registerSensors()
void
resetSession()
void
startSession(java.lang.String streamFolder, java.lang.String scanFolderName)
void
stopSession()
void
unregisterSensors()
-
-
-
Field Detail
-
LOG_TAG
private static final java.lang.String LOG_TAG
-
mContext
private VideoCaptureActivity mContext
-
mSensors
private java.util.HashMap<java.lang.String,Sensor> mSensors
-
mSensorManager
private SensorManager mSensorManager
-
mInitialStepCount
private float mInitialStepCount
-
mFileStreamer
public FileStreamer mFileStreamer
-
mIsRecording
public java.util.concurrent.atomic.AtomicBoolean mIsRecording
-
mIsWritingFile
private java.util.concurrent.atomic.AtomicBoolean mIsWritingFile
-
mSensorCounter
public java.util.HashMap<java.lang.String,java.lang.Integer> mSensorCounter
-
mFrequency
public static final int mFrequency
- See Also:
- Constant Field Values
-
mAcceBias
private float[] mAcceBias
-
ids
public java.lang.String[] ids
-
shortNames
public java.util.HashMap<java.lang.String,java.lang.String> shortNames
-
fullNames
public java.util.HashMap<java.lang.String,java.lang.String> fullNames
-
-
Constructor Detail
-
IMUSession
public IMUSession(VideoCaptureActivity context)
Each sensor has a specific file writer under file streamer instance. When the sensor updates, the file writer will write the records in to specific file.- Parameters:
context
- Activity Context
-
-
Method Detail
-
registerSensors
public void registerSensors()
-
unregisterSensors
public void unregisterSensors()
-
isRecording
public boolean isRecording()
-
startSession
public void startSession(java.lang.String streamFolder, java.lang.String scanFolderName)
-
stopSession
public void stopSession()
-
resetSession
public void resetSession()
-
onSensorChanged
public void onSensorChanged(SensorEvent event)
-
onAccuracyChanged
public void onAccuracyChanged(Sensor sensor, int accuracy)
-
-