FirmwareVersionVariableCommand.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  Cola2Session& session, datastructure::FirmwareVersion& firmware_version)
45  : VariableCommand(session, 4)
46  , m_firmware_version(firmware_version)
47 {
48  m_firmware_version_parser_ptr = std::make_shared<sick::data_processing::ParseFirmwareVersion>();
49 }
50 
52 {
53  return true;
54 }
55 
57 {
59  {
60  return false;
61  }
62 
64 
65 
66  return true;
67 }
68 
69 
70 } // namespace cola2
71 } // namespace sick
FirmwareVersionVariableCommand(Cola2Session &session, datastructure::FirmwareVersion &firmware_version)
Constructor of the Command. Takes the current session and the reference for the device name...
std::vector< uint8_t > getDataVector() const
Returns the data vector.
Definition: Command.cpp:147
std::shared_ptr< sick::data_processing::ParseFirmwareVersion > m_firmware_version_parser_ptr
bool canBeExecutedWithoutSessionID() const
Returns if the command can be executed without a session ID. Will return false for most commands exce...
Class containing the firmware version of a laser scanner.
bool processReply()
Processes the return from the sensor.
Command to read a variable from the sensor.
bool processReply()
Processes the return from the sensor.
Establishes a cola2 session with a sensor and enables execution of commands in this session...
Definition: Cola2Session.h:72


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Apr 2 2021 02:45:41