Skip to content

//sdk-realtime/me.oriient.ipssdk.api.models/IPSPositioningDebuggingWalkBuilder

IPSPositioningDebuggingWalkBuilder

[androidJvm]\ class IPSPositioningDebuggingWalkBuilder(startCalibrated: Boolean = true)

This class allows to construct a IPSPositioningDebuggingWalk.

Usage example:

IPSDebugging.positioningDebuggingWalk = IPSPositioningDebuggingWalkBuilder() .acquireLockAt(x = 8.7, y = 11.5, duration = 5000) .walkTo(x = 7.8, y = 5.5) .setSpeed(3.0) .setAccuracy(3.5) .walkTo(x = 5.2, y = 5.3) .loseAndRecoverLockAt(x = 5.5, y = 5.5, duration = 1000) .setSpeed(10.0) .setAccuracy(1.5) .walkTo(x = 4.7, y = 13.3) .build()

Since

7.3.0

Constructors

IPSPositioningDebuggingWalkBuilder [androidJvm]
constructor(startCalibrated: Boolean = true)

Types

Name Summary
LoadError [androidJvm]
sealed class LoadError : Exception

Functions

Name Summary
acquireLockAt [androidJvm]
fun acquireLockAt(x: Double, y: Double, durationMillis: Long): IPSPositioningDebuggingWalkBuilder
Add a section with lock progress going from 0 to 1
build [androidJvm]
fun build(): IPSPositioningDebuggingWalk
Builds a walk considering all the previously added sections
changeFloorTo [androidJvm]
fun changeFloorTo(floorOrder: Int): IPSPositioningDebuggingWalkBuilder
Moves the following user position updates to the specified floor
completeCalibration [androidJvm]
fun completeCalibration(durationMillis: Long): IPSPositioningDebuggingWalkBuilder
Adds a segment representing the calibration process from 0% to 100% completion.
dwellAround [androidJvm]
fun dwellAround(x: Double, y: Double, deviation: Double = 0.25, durationMillis: Long): IPSPositioningDebuggingWalkBuilder
Add a section where user dwells around the specified coordinates. The coordinates of the updates will be spread randomly around the specified values, deviation parameter defines how far the coordinates can be.
loseAndRecoverLockAt [androidJvm]
fun loseAndRecoverLockAt(x: Double, y: Double, durationMillis: Long): IPSPositioningDebuggingWalkBuilder
Add a section where the lock will be lost and re-established (lock progress going from 0 to 1)
loseCalibration [androidJvm]
fun loseCalibration(reason: Int): IPSPositioningDebuggingWalkBuilder
Adds a segment representing a loss of calibration.
moveLockProgressTo [androidJvm]
fun moveLockProgressTo(value: Double): IPSPositioningDebuggingWalkBuilder
Set lock progress at specified fixed value
setAccuracy [androidJvm]
fun setAccuracy(value: Double): IPSPositioningDebuggingWalkBuilder
Set the accuracy parameter that will be used for the following walking sections.
setSpeed [androidJvm]
fun setSpeed(value: Double): IPSPositioningDebuggingWalkBuilder
Set the speed parameter that will be used for the following walking sections. Average human walking speed is around 4.5 km/h
standStillAt [androidJvm]
fun standStillAt(x: Double, y: Double, durationMillis: Long): IPSPositioningDebuggingWalkBuilder
Add a section where user stands still at the provided coordinates.
walkTo [androidJvm]
fun walkTo(x: Double, y: Double): IPSPositioningDebuggingWalkBuilder
Add a section where user will walk to the provided coordinates. Heading will be calculated by the direction from the previous destination to the next one.