|
**NOTE:** Also, you don't have to collect data only when `collect` is called if you have your only runner thread. The main purpose of the `collect` function is to check the preconditions of the algorithm to determine whether to accept the results from it. In fact, you can collect data from sensors whenever you want, and just return a flag to indicate whether the algorithm is valid in the current condition when collect is called.
|
|
**NOTE:** Also, you don't have to collect data only when `collect` is called if you have your only runner thread. The main purpose of the `collect` function is to check the preconditions of the algorithm to determine whether to accept the results from it. In fact, you can collect data from sensors whenever you want, and just return a flag to indicate whether the algorithm is valid in the current condition when collect is called.
|