FieldSetsVariableCommand.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 
45  : VariableCommand(session, 1003)
46  , m_field_sets(field_sets)
47 {
48  m_field_sets_parser_ptr = std::make_shared<sick::data_processing::ParseFieldSetsData>();
49 }
50 
52 {
53  return true;
54 }
55 
57 {
59  {
60  return false;
61  }
63  return true;
64 }
65 
66 
67 } // namespace cola2
68 } // namespace sick
sick
Definition: ApplicationNameVariableCommand.h:43
Command.h
sick::cola2::Cola2Session
Establishes a cola2 session with a sensor and enables execution of commands in this session.
Definition: Cola2Session.h:72
FieldSetsVariableCommand.h
sick::cola2::VariableCommand::processReply
bool processReply()
Processes the return from the sensor.
Definition: VariableCommand.cpp:63
Cola2Session.h
sick::cola2::FieldSetsVariableCommand::m_field_sets
sick::datastructure::FieldSets & m_field_sets
Definition: FieldSetsVariableCommand.h:85
sick::cola2::FieldSetsVariableCommand::m_field_sets_parser_ptr
std::shared_ptr< sick::data_processing::ParseFieldSetsData > m_field_sets_parser_ptr
Definition: FieldSetsVariableCommand.h:83
sick::cola2::FieldSetsVariableCommand::canBeExecutedWithoutSessionID
bool canBeExecutedWithoutSessionID() const
Returns if the command can be executed without a session ID. Will return false for most commands exce...
Definition: FieldSetsVariableCommand.cpp:51
sick::cola2::Command::getDataVector
std::vector< uint8_t > getDataVector() const
Returns the data vector.
Definition: Command.cpp:147
sick::cola2::FieldSetsVariableCommand::FieldSetsVariableCommand
FieldSetsVariableCommand(Cola2Session &session, datastructure::FieldSets &field_sets)
Constructor of the Command.
Definition: FieldSetsVariableCommand.cpp:43
sick::cola2::VariableCommand
Command to read a variable from the sensor.
Definition: VariableCommand.h:46
sick::cola2::FieldSetsVariableCommand::processReply
bool processReply()
Processes the return from the sensor.
Definition: FieldSetsVariableCommand.cpp:56
sick::datastructure::FieldSets
Class containing the field name of a laser scanner.
Definition: FieldSets.h:47


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