FieldGeometryVariableCommand.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, 0x2810 + index)
47  , m_field_data(field_data)
48 {
49  m_field_geometry_parser_ptr = std::make_shared<sick::data_processing::ParseFieldGeometryData>();
50 }
51 
53 {
54  return true;
55 }
56 
58 {
60  {
61  return false;
62  }
64  return true;
65 }
66 
67 
68 } // namespace cola2
69 } // namespace sick
sick::cola2::FieldGeometryVariableCommand::processReply
bool processReply()
Processes the return from the sensor.
Definition: FieldGeometryVariableCommand.cpp:57
sick
Definition: ApplicationNameVariableCommand.h:43
sick::datastructure::FieldData
Field data for warning and protective fields.
Definition: FieldData.h:48
Command.h
sick::cola2::Cola2Session
Establishes a cola2 session with a sensor and enables execution of commands in this session.
Definition: Cola2Session.h:72
sick::cola2::VariableCommand::processReply
bool processReply()
Processes the return from the sensor.
Definition: VariableCommand.cpp:63
Cola2Session.h
sick::cola2::FieldGeometryVariableCommand::m_field_data
sick::datastructure::FieldData & m_field_data
Definition: FieldGeometryVariableCommand.h:91
sick::cola2::FieldGeometryVariableCommand::FieldGeometryVariableCommand
FieldGeometryVariableCommand(Cola2Session &session, datastructure::FieldData &field_data, const uint16_t &index)
Constructor of the command.
Definition: FieldGeometryVariableCommand.cpp:43
sick::cola2::Command::getDataVector
std::vector< uint8_t > getDataVector() const
Returns the data vector.
Definition: Command.cpp:147
sick::cola2::FieldGeometryVariableCommand::canBeExecutedWithoutSessionID
bool canBeExecutedWithoutSessionID() const
Returns if the command can be executed without a session ID. Will return false for most commands exce...
Definition: FieldGeometryVariableCommand.cpp:52
sick::cola2::VariableCommand
Command to read a variable from the sensor.
Definition: VariableCommand.h:46
sick::cola2::FieldGeometryVariableCommand::m_field_geometry_parser_ptr
std::shared_ptr< sick::data_processing::ParseFieldGeometryData > m_field_geometry_parser_ptr
Definition: FieldGeometryVariableCommand.h:89
FieldGeometryVariableCommand.h


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Jun 21 2024 02:40:51