Class FindMeCommand

Inheritance Relationships

Base Type

Class Documentation

class FindMeCommand : public sick::cola2::MethodCommand

Method command class to make the scanner flash. To find the correct hardware.

Public Types

typedef sick::cola2::MethodCommand base_class

Typedef to reference the base class.

Public Functions

FindMeCommand(Cola2Session &session, uint16_t blink_time)

Constructor of the Command, takes the current session and time to blink for.

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

  • blink_time – Time to flash for.

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.