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.
- Type
set_temperature_threshold
in thePredicate name
field.
-
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. -
Skip the
Calculate
section. If intermediate calculations are needed in a tagger, you can enter them in this section. -
Type or paste the following line in the
Evaluate
section to check if the temperature is greater than 28 degrees:
temperature > 28
5. You can ensure your predicate definition is valid by clicking on the Validate
button. Note that you can add more predicates, if needed.
- Click
Continue
to proceed to the next step.