47 , m_settings(settings)
55 size_t base_length = base_output.size();
59 const auto new_data_offset_it = output.begin() + base_length + telegram.size();
101 std::vector<uint8_t>::iterator data_ptr)
const 107 std::vector<uint8_t>::iterator data_ptr)
const 118 std::vector<uint8_t>::iterator data_ptr)
const 124 std::vector<uint8_t>::iterator data_ptr)
const 130 std::vector<uint8_t>::iterator data_ptr)
const 136 std::vector<uint8_t>::iterator data_ptr)
const void writeFrequencyToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
Command for method calls to the sensor.
boost::asio::ip::address_v4 getHostIp() const
Gets the IP-address of the host.
uint16_t getFeatures() const
Gets the enabled features.
void writeChannelToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
void writeStartAngleToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
void writeEInterfaceTypeToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
uint16_t getPublishingFrequency() const
Gets the publishing frequency.
void writePortToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
void writeDataToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
bool processReply()
Processes the return from the sensor. Checks if the method was acknowledged by the sensor...
uint8_t getEInterfaceType() const
Gets the eInterface type.
sick::datastructure::CommSettings m_settings
Containing the communication settings for the sensor which can be changed on runtime.
void writeIPAddresstoDataPtr(std::vector< uint8_t >::iterator data_ptr) const
uint32_t getStartAngle() const
Gets the start angle of the scan.
std::vector< uint8_t > addTelegramData(const std::vector< uint8_t > &telegram) const
Adds the settings as data to the packetbuffer.
uint32_t getEndAngle() const
Gets the end angle of the scan.
std::vector< uint8_t > expandTelegram(const std::vector< uint8_t > &telegram, size_t additional_bytes) const
void writeFeaturesToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
void writeUint32LittleEndian(std::vector< uint8_t >::iterator it, const uint32_t v)
Writes an unsigned 32-bit integer to a buffer at offset in little endian encoding.
bool canBeExecutedWithoutSessionID() const
Returns if the command can be executed without a session ID. Will return false for most commands exce...
void writeUint8LittleEndian(std::vector< uint8_t >::iterator it, const uint8_t v)
Writes an unsigned 8-bit integer to a buffer at offset in little endian encoding. ...
bool getEnabled() const
Gets if the channel is enabled.
uint8_t getChannel() const
Gets the channel of the data.
bool processReply()
Processes the return from the sensor.
std::vector< uint8_t > addTelegramData(const std::vector< uint8_t > &telegram) const
Adds the data to the telegram.
void writeEnabledToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
void writeUint16LittleEndian(std::vector< uint8_t >::iterator it, const uint16_t v)
Writes an unsigned 16-bit integer to a buffer at offset in little endian encoding.
uint16_t getHostUdpPort() const
Gets the host udp port.
ChangeCommSettingsCommand(Cola2Session &session, const datastructure::CommSettings &settings)
Constructor of the Command, takes the current session and the new set of parameters for the sensor...
void writeEndAngleToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
Establishes a cola2 session with a sensor and enables execution of commands in this session...