From 168b3ba9a33258b0aed1f7c19aa931b64ca94cd9 Mon Sep 17 00:00:00 2001 From: Viktor Richter Date: Fri, 20 Nov 2015 11:29:26 +0100 Subject: [PATCH] Add a situation proto decribing a recognition result. --- proto/sandbox/rst/classification/Situation.proto | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 proto/sandbox/rst/classification/Situation.proto diff --git a/proto/sandbox/rst/classification/Situation.proto b/proto/sandbox/rst/classification/Situation.proto new file mode 100644 index 0000000..968bcf4 --- /dev/null +++ b/proto/sandbox/rst/classification/Situation.proto @@ -0,0 +1,42 @@ +package rst.classification; + +import "rst/classification/ClassificationResult.proto"; + +option java_outer_classname = "SituationType"; + +/** + * A class representing the result of a situation recognition. + * + * Different discrete aspects of the situation can have their + * own classification. + * + * @author Viktor Richter + */ +message Situation { + + /** + * An AspectClassification describes a classification of a discrete + * aspect of the situation. + * + * The Situation is the whole set of aspects and their current states. + */ + message AspectClassification { + + /** + * The name of the discrete aspect that is considered. + */ + required string aspect_name = 1; + + /** + * The ClassificationResult holds the state with the highest probability + * of this aspect and the complete list of state probabilities. + */ + required ClassificationResult state = 2; + } + + /** + * Describes the currens Situation as a combination of its aspects + * and their states. + */ + repeated AspectClassification aspects = 1; +} -- 1.9.1