Tesseract 0.28.4
Loading...
Searching...
No Matches
environment_monitor.h File Reference

Tesseract Environment Monitor Interface Class. More...

#include <tesseract/common/macros.h>
#include <chrono>
#include <memory>
#include <string>

Classes

class  tesseract::environment::EnvironmentMonitor
 Tesseract Environment Monitor Interface Class. More...

Enumerations

enum class  tesseract::environment::MonitoredEnvironmentMode : std::uint8_t { DEFAULT = 0 , SYNCHRONIZED = 1 }

Detailed Description

Tesseract Environment Monitor Interface Class.

Author
Levi Armstrong
Date
March 30, 2022
License
Software License Agreement (Apache License)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Enumeration Type Documentation

◆ MonitoredEnvironmentMode

enum class tesseract::environment::MonitoredEnvironmentMode : std::uint8_t
strong
Enumerator
DEFAULT 

The default behavior when monitoring another environment is the following.

Case1: If the revision is greater than, it will call a service of the monitored environment to get the changes and apply them. Case2: If the revision is less than, it will reinitialize the environment and request the remaining changes and apply them.

SYNCHRONIZED 

The synchronized behavior when monitoring another environment is the following.

Warning
Currently this works best if there is only one monitor which is synchronized because currently if two environment monitors are synchronized, it currently does not have a way to reason about which ones should get applied. Need to research approach for this type of system.

Case1: If the revision is greater than, it will call a service of the monitored environment to get the changes and apply them. Case2: If the revision is less than, it will call a service of the monitored environment to apply the new changes.