1#include "sick_scan/sick_scan_base.h"/* Base definitions included in all header files, added by add_sick_scan_base_header.py. Do not edit this line. */
2/*
3 * @brief msgpack_converter runs a background thread to unpack and parses msgpack data for the sick 3D lidar multiScan136.
4 * msgpack_converter pops binary msgpack data from an input fifo, converts the data to scanlines using MsgPackParser::Parse()
5 * and pushes the ScanSegmentParserOutput to an output fifo.
98 * @param[in] scandataformat ScanDataFormat: 1 for msgpack or 2 for compact scandata, default: 2
99 * @param[in] msgpack_output_fifolength max. output fifo length (-1: unlimited, default: 20 for buffering 1 second at 20 Hz), elements will be removed from front if number of elements exceeds the fifo_length
121 * @brief Configures msgpack validation, see MsgPackValidator for details
122 * @param[in] msgpack_validator the msgpack validator
123 * @param[in] msgpack_validator_enabled true: check msgpack data for out of bounds and missing scan data, false: no msgpack validation
124 * @param[in] discard_msgpacks_not_validated true: msgpacks are discarded if scan data out of bounds detected, false: error message if a msgpack is not validated
125 * @param[in] msgpack_validator_check_missing_scandata_interval check msgpack for missing scandata after collecting N msgpacks, default: N = 12 segments. Increase this value to tolerate udp packet drops. Use 12 to check each full scan.
126 */
127voidSetValidator(sick_scansegment_xd::MsgPackValidator& msgpack_validator, bool msgpack_validator_enabled, bool discard_msgpacks_not_validated, int msgpack_validator_check_missing_scandata_interval);
128
129/*
130 * @brief Returns the output fifo storing the multiScan136 scanlines.
137 * @brief Thread callback, runs the converter. Pops msgpack data from the input fifo, converts them und pushes ScanSegmentParserOutput data to the output fifo.
157boolm_discard_msgpacks_not_validated; // true: msgpacks are discarded if scan data out of bounds detected, false: error message if a msgpack is not validated
158intm_msgpack_validator_check_missing_scandata_interval; // check msgpack for missing scandata after collecting N msgpacks, default: N = 12 segments. Increase this value to tolerate udp packet drops. Use 12 to check each full scan.