FieldHeaderVariableCommand.cpp
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 
24 // -- END LICENSE BLOCK ------------------------------------------------
25 
26 //----------------------------------------------------------------------
33 //----------------------------------------------------------------------
34 
36 
39 
40 namespace sick {
41 namespace cola2 {
42 
44  datastructure::FieldData& field_data,
45  const uint16_t index)
46  : VariableCommand(session, 0x2710 + index)
47  , m_field_data(field_data)
48 {
49  m_writer_ptr = std::make_shared<sick::data_processing::ReadWriteHelper>();
50  m_field_header_parser_ptr = std::make_shared<sick::data_processing::ParseFieldHeaderData>();
51 }
52 
55 {
57 }
58 
60 {
61  return true;
62 }
63 
65 {
67  {
68  return false;
69  }
70 
72  return true;
73 }
74 
75 
76 } // namespace cola2
77 } // namespace sick
std::vector< uint8_t > getDataVector() const
Returns the data vector.
Definition: Command.cpp:137
sick::datastructure::FieldData & m_field_data
void addTelegramData(sick::datastructure::PacketBuffer::VectorBuffer &telegram) const
Adds the data to the telegram.
Field data for warning and protective fields.
Definition: FieldData.h:48
void addTelegramData(sick::datastructure::PacketBuffer::VectorBuffer &telegram) const
Adds the data to the telegram.
FieldHeaderVariableCommand(Cola2Session &session, datastructure::FieldData &field_data, const uint16_t index)
Constructor of the command.
bool processReply()
Processes the return from the sensor.
std::shared_ptr< sick::data_processing::ParseFieldHeaderData > m_field_header_parser_ptr
Command to read a variable from the sensor.
bool canBeExecutedWithoutSessionID() const
Returns if the command can be executed without a session ID. Will return false for most commands exce...
std::vector< uint8_t > VectorBuffer
Typedef for a vector buffer, to sort the incoming packets.
Definition: PacketBuffer.h:71
Establishes a cola2 session with a sensor and enables execution of commands in this session...
Definition: Cola2Session.h:72
std::shared_ptr< sick::data_processing::ReadWriteHelper > m_writer_ptr
bool processReply()
Processes the return from the sensor.


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Thu May 9 2019 02:41:08