Skip to main content

Defining a tagger predicate

Tagger predicates operate on the variable or variables you defined to determine whether they meet the required conditions of the event.

You can optionally perform intermediate calculations on variables within a predicate, and the predicate's evaluation must return a boolean value indicating whether the defined event is occurring or not.

In this scenario, you will determine when the temperature measured by the robot is greater than 28 degrees.

  1. Type set_temperature_threshold in the Predicate name field.

Predicate Name

  1. In the Import section, you can import python packages that are needed to perform calculations within your predicate. You do not need to import any packages for this tagger, so you will skip this section.

  2. Skip the Calculate section. If intermediate calculations are needed in a tagger, you can enter them in this section.

  3. Type or paste the following line in the Evaluate section to check if the temperature is greater than 28 degrees:

temperature > 28

Predicate Evaluate 5. You can ensure your predicate definition is valid by clicking on the Validate button. Note that you can add more predicates, if needed.

  1. Click Continue to proceed to the next step.

Predicate Continue