User Tools

Site Tools


tools:logger:start

This is an old revision of the document!


Logging

A logger enables a user to gather information about the state of the system at runtime. Several logger The safety system is key to the EEROS framework. It regulates all interaction with the HAL (Hardware Abstraction Layer) and uses a safety level to determine the future course that the robot should take. If the situation becomes less safe, the robot may have its movement restricted to avoid damaging nearby people, materials, or itself.

How it works

The most important function of the safety system is its run method. This method is called periodically by the executor. Here's how it works:

  void main() {
 
    // 1) Read inputs and check them
    for(auto ia : level->inputAction) {
      if(ia != nullptr) ia->check(&privateContext);
    }
 
    // 2) Execute level action
    if(level->action != nullptr) level->action(&privateContext);
 
    // 3) Set outputs
    for(auto oa : level->outputAction) {
      if(oa != nullptr) oa->set();
    }
  }
tools/logger/start.1486117285.txt.gz · Last modified: 2017/02/03 11:21 (external edit)