DeviceStatusVariableCommand.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::DeviceStatus& device_status)
45  : VariableCommand(session, 15)
46  , m_device_status(device_status)
47 {
48  m_device_status_parser_ptr = std::make_shared<sick::data_processing::ParseDeviceStatusData>();
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
bool processReply()
Processes the return from the sensor.
std::vector< uint8_t > getDataVector() const
Returns the data vector.
Definition: Command.cpp:147
DeviceStatusVariableCommand(Cola2Session &session, datastructure::DeviceStatus &device_status)
Constructor of the Command.
bool processReply()
Processes the return from the sensor.
Command to read a variable from the sensor.
Class containing the device status of a laser scanner.
Definition: DeviceStatus.h:47
std::shared_ptr< sick::data_processing::ParseDeviceStatusData > m_device_status_parser_ptr
sick::datastructure::DeviceStatus & m_device_status
bool canBeExecutedWithoutSessionID() const
Returns if the command can be executed without a session ID. Will return false for most commands exce...
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