.. _program_listing_file__tmp_ws_src_sick_safetyscanners_base_include_sick_safetyscanners_base_datastructure_CommSettings.h: Program Listing for File CommSettings.h ======================================= |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/sick_safetyscanners_base/include/sick_safetyscanners_base/datastructure/CommSettings.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- // -- BEGIN LICENSE BLOCK ---------------------------------------------- // -- END LICENSE BLOCK ------------------------------------------------ //---------------------------------------------------------------------- //---------------------------------------------------------------------- #ifndef SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_COMMSETTINGS_H #define SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_COMMSETTINGS_H #include #include #include #include #include #include #include #include "sick_safetyscanners_base/Types.h" namespace sick { namespace datastructure { struct CommSettings { CommSettings() = default; // Aggregate Initialization, do not add constructors, default-initializers etc. // see https://en.cppreference.com/w/cpp/language/aggregate_initialization uint8_t channel{0}; uint16_t publishing_frequency{1}; uint8_t e_interface_type{0}; float start_angle{0.0}; float end_angle{0.0}; sick::types::SensorFeatures features{sick::SensorDataFeatures::ALL}; bool enabled{true}; sick::types::port_t host_udp_port{0}; sick::types::ip_address_t host_ip{boost::asio::ip::address_v4::from_string("192.168.1.100")}; }; std::ostream& operator<<(std::ostream& os, const CommSettings& settings); } // namespace datastructure } // namespace sick #endif // SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_COMMSETTINGS_H