Class ChangeCommSettingsCommand

Inheritance Relationships

Base Type

Class Documentation

class ChangeCommSettingsCommand : public sick::cola2::MethodCommand

Method command class for changing the settings in the sensor. Such as which data packages to enable.

Public Types

typedef sick::cola2::MethodCommand base_class

Typedef to reference the base class.

Public Functions

ChangeCommSettingsCommand(Cola2Session &session, const datastructure::CommSettings &settings)

Constructor of the Command, takes the current session and the new set of parameters for the sensor.

Parameters:
  • session – The current Cola2 session, in which the parameters should be transferred.

  • settings – The new settings for the sensor. While the command will be executed in the session, these parameters will be set in the sensor.

virtual std::vector<uint8_t> addTelegramData(const std::vector<uint8_t> &telegram) const

Adds the settings as data to the packetbuffer.

Parameters:

telegram – The telegram, which will be modified the settings as data.

Returns:

Completed telegram

bool canBeExecutedWithoutSessionID() const

Returns if the command can be executed without a session ID. Will return false for most commands except the commands to establish a connection.

Returns:

If the command needs a session ID to be executed.

virtual bool processReply()

Processes the return from the sensor. Checks if the method was acknowledged by the sensor.

Returns:

If processing of the returned data was successful.