ApplicationNameVariableCommand.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, sick::datastructure::ApplicationName& application_name)
45  : VariableCommand(session, 33)
46  , m_application_name(application_name)
47 {
49  std::make_shared<sick::data_processing::ParseApplicationNameData>();
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::datastructure::ApplicationName & m_application_name
std::vector< uint8_t > getDataVector() const
Returns the data vector.
Definition: Command.cpp:147
ApplicationNameVariableCommand(Cola2Session &session, datastructure::ApplicationName &application_name)
Constructor of the Command.
bool canBeExecutedWithoutSessionID() const
Returns if the command can be executed without a session ID. Will return false for most commands exce...
std::shared_ptr< sick::data_processing::ParseApplicationNameData > m_application_name_parser_ptr
bool processReply()
Processes the return from the sensor.
bool processReply()
Processes the return from the sensor.
Command to read a variable from the sensor.
Establishes a cola2 session with a sensor and enables execution of commands in this session...
Definition: Cola2Session.h:72
Class containing the application name of a laser scanner.


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