UsersLibFlow

class UsersLibFlow(flowControlRunner: FlowControlRunner)

Class used to define flowControlRunner functions through the usersLib extension variable.

See also

Constructors

Link copied to clipboard
fun UsersLibFlow(flowControlRunner: FlowControlRunner)

Functions

Link copied to clipboard
fun getCenterUser(): User

Return the user most to the center among those Furhat is currently detecting. This calculation is based on the user's head position in the x-axis (right-left).

Link copied to clipboard
fun getLeftmostUser(): User

Return the user further to the left among those Furhat is currently detecting. This calculation is based on the user's head position in the x-axis (right-left).

Link copied to clipboard
fun getRightmostUser(): User

Return the user further to the right among those Furhat is currently detecting. This calculation is based on the user's head position in the x-axis (right-left).

Link copied to clipboard
fun getShortestUser(): User

Return the shortest user Furhat is currently detecting. This calculation is based on the user's head position in the y-axis (up).

Link copied to clipboard
fun getTallestUser(): User

Return the tallest user Furhat is currently detecting. This calculation is based on the user's head position in the y-axis (up).

Link copied to clipboard
fun usersIncludeShortUser(heightDifference: Double = -0.15): Boolean

Tries to determine if there is a short user among the users by looking at their height relative to Furhat. Note that this depends on the physical setup, such as if the robot is placed on a podium. Can for example be used to check if there might be children, but be careful how you use it (i.e. wheelchair users etc.)