ParseApplicationData.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 
24 // -- END LICENSE BLOCK ------------------------------------------------
25 
26 //----------------------------------------------------------------------
33 //----------------------------------------------------------------------
34 
35 #ifndef SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEAPPLICATIONDATA_H
36 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEAPPLICATIONDATA_H
37 
41 
43 
44 #include <vector>
45 
46 
47 namespace sick {
48 namespace data_processing {
49 
54 {
55 public:
60 
70  datastructure::Data& data) const;
71 
72 private:
73  void setDataInApplicationData(std::vector<uint8_t>::const_iterator data_ptr,
74  datastructure::ApplicationData& application_data) const;
75  void
76  setApplicationInputsInApplicationData(std::vector<uint8_t>::const_iterator data_ptr,
77  datastructure::ApplicationData& application_data) const;
78  void
79  setApplicationOutputsInApplicationData(std::vector<uint8_t>::const_iterator data_ptr,
80  datastructure::ApplicationData& application_data) const;
81  void setDataInApplicationInputs(std::vector<uint8_t>::const_iterator data_ptr,
82  datastructure::ApplicationInputs& inputs) const;
83  void setDataInApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
84  datastructure::ApplicationOutputs& outputs) const;
85  void setUnsafeInputsInApplicationInputs(std::vector<uint8_t>::const_iterator data_ptr,
86  datastructure::ApplicationInputs& inputs) const;
87  void setUnsafeInputsSourcesInApplicationInputs(std::vector<uint8_t>::const_iterator data_ptr,
88  datastructure::ApplicationInputs& inputs) const;
89  void setUnsafeInputsFlagsInApplicationInputs(std::vector<uint8_t>::const_iterator data_ptr,
90  datastructure::ApplicationInputs& inputs) const;
91  void setMonitoringCaseInputsInApplicationInputs(std::vector<uint8_t>::const_iterator data_ptr,
92  datastructure::ApplicationInputs& inputs) const;
93  void setMonitoringCaseNumbersInApplicationInputs(std::vector<uint8_t>::const_iterator data_ptr,
94  datastructure::ApplicationInputs& inputs) const;
95  void setMonitoringCaseFlagsInApplicationInputs(std::vector<uint8_t>::const_iterator data_ptr,
96  datastructure::ApplicationInputs& inputs) const;
97  void setLinearVelocityInputsInApplicationInputs(std::vector<uint8_t>::const_iterator data_ptr,
98  datastructure::ApplicationInputs& inputs) const;
99  void setLinearVelocity0InApplicationInputs(std::vector<uint8_t>::const_iterator data_ptr,
100  datastructure::ApplicationInputs& inputs) const;
101  void setLinearVelocity1InApplicationInputs(std::vector<uint8_t>::const_iterator data_ptr,
102  datastructure::ApplicationInputs& inputs) const;
103  void setLinearVelocityFlagsInApplicationInputs(std::vector<uint8_t>::const_iterator data_ptr,
104  datastructure::ApplicationInputs& inputs) const;
105  void setSleepModeInputInApplicationInputs(std::vector<uint8_t>::const_iterator data_ptr,
106  datastructure::ApplicationInputs& inputs) const;
107  void
108  setEvalutaionPathsOutputsInApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
109  datastructure::ApplicationOutputs& outputs) const;
111  std::vector<uint8_t>::const_iterator data_ptr,
112  datastructure::ApplicationOutputs& outputs) const;
114  std::vector<uint8_t>::const_iterator data_ptr,
115  datastructure::ApplicationOutputs& outputs) const;
117  std::vector<uint8_t>::const_iterator data_ptr,
118  datastructure::ApplicationOutputs& outputs) const;
119  void
120  setMonitoringCaseOutputsInApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
121  datastructure::ApplicationOutputs& outputs) const;
122  void
123  setMonitoringCaseNumbersInApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
124  datastructure::ApplicationOutputs& outputs) const;
125  void setMonitoringCaseFlagsInApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
126  datastructure::ApplicationOutputs& outputs) const;
127  void setSleepModeOutputInApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
128  datastructure::ApplicationOutputs& outputs) const;
129  void setErrorFlagsInApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
130  datastructure::ApplicationOutputs& outputs) const;
131  void
132  setLinearVelocityOutoutsInApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
133  datastructure::ApplicationOutputs& outputs) const;
134  void setLinearVelocity0InApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
135  datastructure::ApplicationOutputs& outputs) const;
136  void setLinearVelocity1InApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
137  datastructure::ApplicationOutputs& outputs) const;
138  void setLinearVelocityFlagsInApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
139  datastructure::ApplicationOutputs& outputs) const;
140  void
141  setResultingVelocityOutputsInApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
142  datastructure::ApplicationOutputs& outputs) const;
143  void setResultingVelocityInApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
144  datastructure::ApplicationOutputs& outputs) const;
145  void
146  setResultingVelocityFlagsInApplicationOutputs(std::vector<uint8_t>::const_iterator data_ptr,
147  datastructure::ApplicationOutputs& outputs) const;
148  void setOutputFlagsinApplicationOutput(std::vector<uint8_t>::const_iterator data_ptr,
149  datastructure::ApplicationOutputs& outputs) const;
150  bool checkIfPreconditionsAreMet(const datastructure::Data& data) const;
153 };
154 
155 } // namespace data_processing
156 } // namespace sick
157 
158 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEAPPLICATIONDATA_H
void setLinearVelocity0InApplicationInputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationInputs &inputs) const
bool checkIfDataContainsNeededParsedBlocks(const datastructure::Data &data) const
void setLinearVelocityOutoutsInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
void setUnsafeInputsInApplicationInputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationInputs &inputs) const
void setLinearVelocityFlagsInApplicationInputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationInputs &inputs) const
void setErrorFlagsInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
The applications inputs from a udp data packet.
void setEvaluationPathsOutputsIsSafeInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
void setLinearVelocity1InApplicationInputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationInputs &inputs) const
data
void setSleepModeOutputInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
void setApplicationInputsInApplicationData(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationData &application_data) const
The data class containing all data blocks of a measurement.
Definition: Data.h:55
The application io class, bundles application input and output.
void setDataInApplicationData(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationData &application_data) const
void setDataInApplicationInputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationInputs &inputs) const
void setMonitoringCaseFlagsInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
void setUnsafeInputsFlagsInApplicationInputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationInputs &inputs) const
void setMonitoringCaseNumbersInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
void setMonitoringCaseInputsInApplicationInputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationInputs &inputs) const
void setEvaluationPathsOutputsValidFlagsInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
void setDataInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
void setResultingVelocityFlagsInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
datastructure::ApplicationData parseUDPSequence(const sick::datastructure::PacketBuffer &buffer, datastructure::Data &data) const
Parses the application data from the packet buffer.
bool checkIfApplicationDataIsPublished(const datastructure::Data &data) const
bool checkIfPreconditionsAreMet(const datastructure::Data &data) const
void setMonitoringCaseNumbersInApplicationInputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationInputs &inputs) const
void setLinearVelocity0InApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
void setApplicationOutputsInApplicationData(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationData &application_data) const
void setEvalutaionPathsOutputsInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
The application outputs from a udp data packet.
void setOutputFlagsinApplicationOutput(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
void setMonitoringCaseOutputsInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
void setLinearVelocity1InApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
void setResultingVelocityOutputsInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
void setLinearVelocityInputsInApplicationInputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationInputs &inputs) const
void setEvaluationPathsOutputsEvalOutInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
Parses the application data from a packet buffer.
void setResultingVelocityInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
void setLinearVelocityFlagsInApplicationOutputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationOutputs &outputs) const
void setSleepModeInputInApplicationInputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationInputs &inputs) const
void setMonitoringCaseFlagsInApplicationInputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationInputs &inputs) const
void setUnsafeInputsSourcesInApplicationInputs(std::vector< uint8_t >::const_iterator data_ptr, datastructure::ApplicationInputs &inputs) const


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Apr 2 2021 02:45:41