determineValidUtterances: Determine valid utterances

Description Usage Arguments Value Examples

View source: R/AllUtterancesAndObjects.R

Description

The relevant utterances are determined based on the features of the current objects present in the scene.

Usage

1
determineValidUtterances(currentObjects)

Arguments

currentObjects

A vector of three values in range {1,...,27} specifying the target and the other two objects.

The target is the first object in the vector (index = 1).

Value

A vector of utterances that correspond to all feature values present in the current objects in the scene.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
currentObjects <- c(1,2,3)

determineValidUtterances(currentObjects)

output: [1] 1 2 3 4 7

To see which objects are present in the scene run:
allObjects[currentObjects,]

output:

      shape    pattern color
[1,] "cloud"  "solid" "blue"
[2,] "circle" "solid" "blue"
[3,] "square" "solid" "blue"

Based on this output you can see that the indices in the validUtterances vector refer to:
cloud = 1, circle = 2, square = 3, solid = 4 and blue = 7.

haniaelkersh/rsa-publish-test documentation built on Jan. 31, 2021, 2:02 a.m.