Class MeasurementCurrentConfigVariableCommand

Inheritance Relationships

Base Type

Class Documentation

class MeasurementCurrentConfigVariableCommand : public sick::cola2::VariableCommand

Command to read the current configuration from the sensor.

Public Types

typedef sick::cola2::VariableCommand base_class

Typedef to reference the base class.

Public Functions

MeasurementCurrentConfigVariableCommand(Cola2Session &session, datastructure::ConfigData &config_data)

Constructor of the command.

Takes the current cola2 session and a reference to the config data variable which will be written on execution.

Parameters:
  • session – The current cola2 session.

  • config_data – The config data reference which will be modified on execution.

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.

Returns:

If processing of the returned data was successful.