Command for method calls to the sensor. More...
#include <MethodCommand.h>
Public Member Functions | |
void | addTelegramData (sick::datastructure::PacketBuffer::VectorBuffer &telegram) const |
Adds the data to the 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. | |
uint16_t | getMethodIndex () const |
MethodCommand (Cola2Session &session, const uint16_t &method_index) | |
Constructor of the method command. | |
bool | processReply () |
Processes the return from the sensor. | |
void | setMethodIndex (const uint16_t &method_index) |
Private Attributes | |
uint16_t | m_method_index |
std::shared_ptr < sick::data_processing::ReadWriteHelper > | m_writer_ptr |
Command for method calls to the sensor.
Definition at line 46 of file MethodCommand.h.
sick::cola2::MethodCommand::MethodCommand | ( | Cola2Session & | session, |
const uint16_t & | method_index | ||
) |
Constructor of the method command.
session | The current cola2 session. |
method_index | The index of the method to call in the sensor. |
Definition at line 43 of file MethodCommand.cpp.
void sick::cola2::MethodCommand::addTelegramData | ( | sick::datastructure::PacketBuffer::VectorBuffer & | telegram | ) | const [virtual] |
Adds the data to the telegram.
telegram | The telegram which will be modified by the data. |
Implements sick::cola2::Command.
Reimplemented in sick::cola2::ChangeCommSettingsCommand.
Definition at line 50 of file MethodCommand.cpp.
bool sick::cola2::MethodCommand::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.
Reimplemented in sick::cola2::ChangeCommSettingsCommand.
Definition at line 58 of file MethodCommand.cpp.
uint16_t sick::cola2::MethodCommand::getMethodIndex | ( | ) | const |
Definition at line 78 of file MethodCommand.cpp.
bool sick::cola2::MethodCommand::processReply | ( | ) | [virtual] |
Processes the return from the sensor.
Implements sick::cola2::Command.
Reimplemented in sick::cola2::ChangeCommSettingsCommand.
Definition at line 63 of file MethodCommand.cpp.
void sick::cola2::MethodCommand::setMethodIndex | ( | const uint16_t & | method_index | ) |
Definition at line 83 of file MethodCommand.cpp.
uint16_t sick::cola2::MethodCommand::m_method_index [private] |
Definition at line 83 of file MethodCommand.h.
std::shared_ptr<sick::data_processing::ReadWriteHelper> sick::cola2::MethodCommand::m_writer_ptr [private] |
Reimplemented from sick::cola2::Command.
Reimplemented in sick::cola2::ChangeCommSettingsCommand.
Definition at line 84 of file MethodCommand.h.