35 #ifndef SICK_SAFETYSCANNERS_DATASTRUCTURE_COMMSETTINGS_H 36 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_COMMSETTINGS_H 38 #include <boost/asio/ip/address_v4.hpp> 43 namespace datastructure {
61 boost::asio::ip::address_v4
getHostIp()
const;
67 void setHostIp(
const boost::asio::ip::address_v4& host_ip);
73 void setHostIp(
const std::string& host_ip);
188 bool derived_settings,
189 bool measurement_data,
191 bool application_data);
204 void setSensorIp(
const boost::asio::ip::address_v4& sensor_ip);
243 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_COMMSETTINGS_H boost::asio::ip::address_v4 getHostIp() const
Gets the IP-address of the host.
void setEInterfaceType(const uint8_t &e_interface_type)
Sets the eInterface type.
uint16_t getFeatures() const
Gets the enabled features.
void setFeatures(const uint16_t &features)
Set the enabled features.
void setSensorTcpPort(const uint16_t &sensor_tcp_port)
Sets the sensor tcp port.
uint16_t m_publishing_frequency
uint16_t getPublishingFrequency() const
Gets the publishing frequency.
void setEnabled(bool enabled)
Sets if the channel is enabled.
void setEndAngle(const uint32_t &end_angle)
Sets the end angle of the scan.
uint8_t getEInterfaceType() const
Gets the eInterface type.
void setPublishingFrequency(const uint16_t &publishing_frequency)
Sets the publishing frequency.
Containing the communication settings for the sensor which can be changed on runtime.
uint32_t getStartAngle() const
Gets the start angle of the scan.
CommSettings()
Constructor of the communication settings.
void setSensorIp(const boost::asio::ip::address_v4 &sensor_ip)
Sets the sensor IP-address.
uint32_t getEndAngle() const
Gets the end angle of the scan.
bool getEnabled() const
Gets if the channel is enabled.
void setStartAngle(const uint32_t &start_angle)
Sets the start angle of the scan.
uint16_t getSensorTcpPort() const
Gets the sensor tcp port.
boost::asio::ip::address_v4 getSensorIp() const
Gets the sensor IP-address.
uint8_t getChannel() const
Gets the channel of the data.
void setHostUdpPort(const uint16_t &host_udp_port)
Sets the host udp port.
void setChannel(const uint8_t &channel)
Sets the channel of the data.
boost::asio::ip::address_v4 m_host_ip
uint16_t m_sensor_tcp_port
boost::asio::ip::address_v4 m_sensor_ip
uint8_t m_e_interface_type
uint16_t getHostUdpPort() const
Gets the host udp port.
void setHostIp(const boost::asio::ip::address_v4 &host_ip)
Sets the IP-address of the host from an IP-address.