Go to the documentation of this file.
16 #ifndef PSEN_SCAN_V2_STANDALONE_SCAN_ROUND_H
17 #define PSEN_SCAN_V2_STANDALONE_SCAN_ROUND_H
27 namespace protocol_layer
45 "The scan round will ignore it.")
57 " Dropping the incomplete round."
58 " (Please check the ethernet connection or contact PILZ support if "
59 "the error persists.)")
103 std::vector<data_conversion_layer::monitoring_frame::MessageStamped>
currentRound();
111 std::vector<data_conversion_layer::monitoring_frame::MessageStamped>
current_round_{};
178 #endif // PSEN_SCAN_V2_STANDALONE_SCAN_ROUND_H
void startNewRound(const data_conversion_layer::monitoring_frame::MessageStamped &stamped_msg)
configuration::ScannerId scannerId() const
Exception thrown if a scan round has to many messages.
ScanRoundError(const std::string &msg)
ScanRoundEndedEarlyError(const std::string &msg="Detected a MonitoringFrame from a new scan round before the old " "one was complete." " Dropping the incomplete round." " (Please check the ethernet connection or contact PILZ support if " "the error persists.)")
void reset()
Readies the validator for a new validation round. This function has to be called whenever there is an...
Exception thrown if the incoming frame has an outdated scan_counter.
const uint32_t num_expected_msgs_
uint32_t scanCounter() const
Wrapping class for a Message and its corresponding timestamp.
ScanBuffer(const uint32_t &num_expected_msgs)
std::vector< data_conversion_layer::monitoring_frame::MessageStamped > currentRound()
std::vector< data_conversion_layer::monitoring_frame::MessageStamped > current_round_
OutdatedMessageError(const std::string &msg="Detected a MonitoringFrame from an earlier round. " "The scan round will ignore it.")
Exception indicating problems with the monitoring frames of a scan round.
ScanRoundOversaturatedError(const std::string &msg="Received too many MonitoringFrames for one scan round.")
Root namespace in which the software components to communicate with the scanner (firmware-version: 2)...
Exception thrown if a new scan round started without the last one finishing.
void add(const data_conversion_layer::monitoring_frame::MessageStamped &stamped_msg)
Adds the message to the current scan round.
Buffers and validates monitoring frames for a scan round.
psen_scan_v2
Author(s): Pilz GmbH + Co. KG
autogenerated on Sat Jun 22 2024 02:46:12