forked from ssl-core/ssl-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6263783
commit 3a4c760
Showing
7 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ robocin_cpp_library( | |
HDRS decision_processor.h | ||
SRCS decision_processor.cpp | ||
DEPS common::output | ||
coach | ||
evaluators | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
decision-ms/decision-guardiola/decision/processing/coach/tactical_plan/tactical_plan.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
decision-ms/decision-guardiola/decision/processing/evaluators/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
robocin_cpp_library( | ||
NAME evaluators | ||
HDRS ievaluator.h | ||
example_evaluator.h | ||
SRCS ievaluator.cpp | ||
example_evaluator.cpp | ||
) |
20 changes: 20 additions & 0 deletions
20
decision-ms/decision-guardiola/decision/processing/evaluators/example_evaluator.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "decision/processing/evaluators/example_evaluator.h" | ||
|
||
#include <robocin/output/log.h> | ||
|
||
namespace decision { | ||
|
||
ExampleEvaluatorResult::ExampleEvaluatorResult() = default; | ||
|
||
ExampleEvaluator::ExampleEvaluator() { reset(); } | ||
|
||
void ExampleEvaluator::process() { robocin::ilog("EXAMPLE EVALUATOR WORKING"); } | ||
|
||
void ExampleEvaluator::reset() { example_evaluator_result_ = ExampleEvaluatorResult{}; } | ||
|
||
ExampleEvaluatorResult ExampleEvaluator::getExampleEvaluatorResult() const { | ||
// return example_evaluator_result_; | ||
return {}; | ||
} | ||
|
||
} // namespace decision |
28 changes: 28 additions & 0 deletions
28
decision-ms/decision-guardiola/decision/processing/evaluators/example_evaluator.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef DECISION_PROCESSING_EVALUATORS_EXAMPLE_EVALUATOR_H | ||
#define DECISION_PROCESSING_EVALUATORS_EXAMPLE_EVALUATOR_H | ||
|
||
#include "decision/processing/evaluators/ievaluator.h" | ||
|
||
namespace decision { | ||
|
||
class ExampleEvaluatorResult { | ||
public: | ||
ExampleEvaluatorResult(); | ||
}; | ||
|
||
class ExampleEvaluator : public IEvaluator { | ||
public: | ||
ExampleEvaluator(); | ||
|
||
void process() override; | ||
void reset() override; | ||
|
||
[[nodiscard]] ExampleEvaluatorResult getExampleEvaluatorResult() const; | ||
|
||
private: | ||
ExampleEvaluatorResult example_evaluator_result_; | ||
}; | ||
|
||
} // namespace decision | ||
|
||
#endif /* DECISION_PROCESSING_EVALUATORS_EXAMPLE_EVALUATOR_H */ |