Command to read the field geometry from the sensor. More...
#include <FieldGeometryVariableCommand.h>
Public Types | |
typedef sick::cola2::VariableCommand | base_class |
Typedef to reference the base class. | |
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. | |
FieldGeometryVariableCommand (Cola2Session &session, datastructure::FieldData &field_data, const uint16_t index) | |
Constructor of the command. | |
bool | processReply () |
Processes the return from the sensor. | |
Private Attributes | |
sick::datastructure::FieldData & | m_field_data |
std::shared_ptr < sick::data_processing::ParseFieldGeometryData > | m_field_geometry_parser_ptr |
std::shared_ptr < sick::data_processing::ReadWriteHelper > | m_writer_ptr |
Command to read the field geometry from the sensor.
Definition at line 49 of file FieldGeometryVariableCommand.h.
Typedef to reference the base class.
Definition at line 55 of file FieldGeometryVariableCommand.h.
sick::cola2::FieldGeometryVariableCommand::FieldGeometryVariableCommand | ( | Cola2Session & | session, |
datastructure::FieldData & | field_data, | ||
const uint16_t | index | ||
) |
Constructor of the command.
Takes the current cola2 session and a reference to the field data variable which will be written on execution. The index defines which field variable will be read. Depending on the sensor up to 128 variables can be defined.
session | The current cola2 session. |
field_data | The field data reference which will be modified on execution. |
index | The variable index in a range of [0, 127]. |
Definition at line 43 of file FieldGeometryVariableCommand.cpp.
void sick::cola2::FieldGeometryVariableCommand::addTelegramData | ( | sick::datastructure::PacketBuffer::VectorBuffer & | telegram | ) | const [virtual] |
Adds the data to the telegram.
telegram | The telegram which will be modified by the data. |
Reimplemented from sick::cola2::VariableCommand.
Definition at line 53 of file FieldGeometryVariableCommand.cpp.
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 from sick::cola2::VariableCommand.
Definition at line 59 of file FieldGeometryVariableCommand.cpp.
bool sick::cola2::FieldGeometryVariableCommand::processReply | ( | ) | [virtual] |
Processes the return from the sensor.
Reimplemented from sick::cola2::VariableCommand.
Definition at line 64 of file FieldGeometryVariableCommand.cpp.
Definition at line 99 of file FieldGeometryVariableCommand.h.
std::shared_ptr<sick::data_processing::ParseFieldGeometryData> sick::cola2::FieldGeometryVariableCommand::m_field_geometry_parser_ptr [private] |
Definition at line 97 of file FieldGeometryVariableCommand.h.
std::shared_ptr<sick::data_processing::ReadWriteHelper> sick::cola2::FieldGeometryVariableCommand::m_writer_ptr [private] |
Reimplemented from sick::cola2::VariableCommand.
Definition at line 96 of file FieldGeometryVariableCommand.h.