Proactive Safety Framework  1.0
pss_protocol.h File Reference
#include <string>
#include <vector>
#include <ctime>

Go to the source code of this file.

Classes

struct  TrajectoryCoordinates
 
struct  EventFusionMetadata
 Structure containing metadata for event fusion. More...
 
struct  SafetyEvent
 Structure for safety event data with fusion support. More...
 
struct  FusedSafetyEvent
 Structure for fused safety events from dual pipelines. More...
 
struct  SensorData
 Structure for sensor data summary. More...
 
struct  SystemStatus
 Structure for system status. More...
 
struct  DecisionRequest
 Structure for decision request. More...
 
struct  DecisionResponse
 Structure for decision response. More...
 

Macros

#define MAX_SENSORS_DATA_SUMMARY_SIZE   8
 
#define MAX_TRAJECTORY_COORDINATES   10
 
#define MAX_INDENTIFIER_LENGTH   64
 

Enumerations

enum  EventType {
  EVENT_0 = 0 , EVENT_1 , EVENT_2 , EVENT_3 ,
  EVENT_4 , EVENT_5 , EVENT_6 , EVENT_7 ,
  ROI_ENTRY , ROI_EXIT , TW_CROSSING_ENTRY , TW_CROSSING_EXIT ,
  SW_FAIL
}
 Enumeration for detected safety event type. More...
 
enum  RecommendedAction {
  ESTOP , AUDIO_WARNING , VISUAL_WARNING , IMPLEMENT_SAFETY_CONTROL ,
  NO_ACTION_REQUIRED
}
 
enum  ObjectType {
  TYPE_0 = 0 , TYPE_1 , TYPE_2 , TYPE_3 ,
  TYPE_4 , TYPE_5 , TYPE_6 , PERSON ,
  VEHICLE , OBJECT
}
 Enumeration for detected object type. More...
 
enum  SeverityLevel { LOW , MEDIUM , HIGH , CRITICAL }
 
enum  OperationalMode { NORMAL , DEGRADED , ERROR }
 
enum  SafetyEventStatus { FUSED , PASSTHROUGH , STALE , UNKNOWN }
 Enumeration for SafetyEvent Fusion status. More...
 

Macro Definition Documentation

◆ MAX_INDENTIFIER_LENGTH

#define MAX_INDENTIFIER_LENGTH   64

◆ MAX_SENSORS_DATA_SUMMARY_SIZE

#define MAX_SENSORS_DATA_SUMMARY_SIZE   8

◆ MAX_TRAJECTORY_COORDINATES

#define MAX_TRAJECTORY_COORDINATES   10

Enumeration Type Documentation

◆ EventType

enum EventType

Enumeration for detected safety event type.

Enumerator
EVENT_0 
EVENT_1 
EVENT_2 
EVENT_3 
EVENT_4 
EVENT_5 
EVENT_6 
EVENT_7 
ROI_ENTRY 
ROI_EXIT 
TW_CROSSING_ENTRY 
TW_CROSSING_EXIT 
SW_FAIL 
29  {
30  //Generic events
31  EVENT_0 = 0,
32  EVENT_1,
33  EVENT_2,
34  EVENT_3,
35  EVENT_4,
36  EVENT_5,
37  EVENT_6,
38  EVENT_7,
39  // Add event types as needed
40  //Special events
41  ROI_ENTRY,
42  ROI_EXIT,
45  SW_FAIL //This is the end event
46 }EventType;
EventType
Enumeration for detected safety event type.
Definition: pss_protocol.h:29
@ EVENT_2
Definition: pss_protocol.h:33
@ EVENT_7
Definition: pss_protocol.h:38
@ ROI_EXIT
Definition: pss_protocol.h:42
@ EVENT_0
Definition: pss_protocol.h:31
@ TW_CROSSING_ENTRY
Definition: pss_protocol.h:43
@ EVENT_4
Definition: pss_protocol.h:35
@ EVENT_3
Definition: pss_protocol.h:34
@ ROI_ENTRY
Definition: pss_protocol.h:41
@ SW_FAIL
Definition: pss_protocol.h:45
@ TW_CROSSING_EXIT
Definition: pss_protocol.h:44
@ EVENT_5
Definition: pss_protocol.h:36
@ EVENT_1
Definition: pss_protocol.h:32
@ EVENT_6
Definition: pss_protocol.h:37

◆ ObjectType

enum ObjectType

Enumeration for detected object type.

Enumerator
TYPE_0 
TYPE_1 
TYPE_2 
TYPE_3 
TYPE_4 
TYPE_5 
TYPE_6 
PERSON 
VEHICLE 
OBJECT 
65  {
66  TYPE_0 = 0,
67  TYPE_1,
68  TYPE_2,
69  TYPE_3,
70  TYPE_4,
71  TYPE_5,
72  TYPE_6,
73  // ....
74  PERSON,
75  VEHICLE,
76  OBJECT
77  // Add other event types as needed
78 }ObjectType;
ObjectType
Enumeration for detected object type.
Definition: pss_protocol.h:65
@ TYPE_1
Definition: pss_protocol.h:67
@ OBJECT
Definition: pss_protocol.h:76
@ TYPE_3
Definition: pss_protocol.h:69
@ TYPE_5
Definition: pss_protocol.h:71
@ TYPE_6
Definition: pss_protocol.h:72
@ PERSON
Definition: pss_protocol.h:74
@ VEHICLE
Definition: pss_protocol.h:75
@ TYPE_4
Definition: pss_protocol.h:70
@ TYPE_0
Definition: pss_protocol.h:66
@ TYPE_2
Definition: pss_protocol.h:68

◆ OperationalMode

Enumerator
NORMAL 
DEGRADED 
ERROR 
95  {
96  NORMAL, /* Normal operational mode */
97  DEGRADED, /* Degraded operational mode */
98  ERROR /* Error operational mode */
OperationalMode
Definition: pss_protocol.h:95
@ ERROR
Definition: pss_protocol.h:98
@ NORMAL
Definition: pss_protocol.h:96
@ DEGRADED
Definition: pss_protocol.h:97

◆ RecommendedAction

Enumerator
ESTOP 
AUDIO_WARNING 
VISUAL_WARNING 
IMPLEMENT_SAFETY_CONTROL 
NO_ACTION_REQUIRED 
52  {
53  ESTOP,
58  // Add other event types as needed
RecommendedAction
Definition: pss_protocol.h:52
@ VISUAL_WARNING
Definition: pss_protocol.h:55
@ AUDIO_WARNING
Definition: pss_protocol.h:54
@ NO_ACTION_REQUIRED
Definition: pss_protocol.h:57
@ IMPLEMENT_SAFETY_CONTROL
Definition: pss_protocol.h:56
@ ESTOP
Definition: pss_protocol.h:53

◆ SafetyEventStatus

Enumeration for SafetyEvent Fusion status.

Enumerator
FUSED 
PASSTHROUGH 
STALE 
UNKNOWN 
105  {
106  FUSED, /* Fused Safety Event */
107  PASSTHROUGH, /* Safety Event pass-through withut fusion */
108  STALE, /* Safety Event arrivd with high latency */
109  UNKNOWN /* Error operational mode or Fusion not enabled*/
SafetyEventStatus
Enumeration for SafetyEvent Fusion status.
Definition: pss_protocol.h:105
@ UNKNOWN
Definition: pss_protocol.h:109
@ STALE
Definition: pss_protocol.h:108
@ FUSED
Definition: pss_protocol.h:106
@ PASSTHROUGH
Definition: pss_protocol.h:107

◆ SeverityLevel

Enumerator
LOW 
MEDIUM 
HIGH 
CRITICAL 
84  {
85  LOW, /* Low severity event */
86  MEDIUM, /* Medium severity event */
87  HIGH, /* High severity event */
88  CRITICAL /* Critical severity event */
SeverityLevel
Definition: pss_protocol.h:84
@ HIGH
Definition: pss_protocol.h:87
@ MEDIUM
Definition: pss_protocol.h:86
@ LOW
Definition: pss_protocol.h:85
@ CRITICAL
Definition: pss_protocol.h:88