FindMeCommand.h
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 
35 
36 #ifndef SICK_SAFETYSCANNERS_COLA2_FINDMECOMMAND_H
37 #define SICK_SAFETYSCANNERS_COLA2_FINDMECOMMAND_H
38 
39 
42 
43 namespace sick {
44 namespace cola2 {
45 
46 
51 {
52 public:
57 
64  FindMeCommand(Cola2Session& session, uint16_t blink_time);
65 
66 
73  std::vector<uint8_t> addTelegramData(const std::vector<uint8_t>& telegram) const;
74 
75 
82  bool canBeExecutedWithoutSessionID() const;
83 
84 
91  bool processReply();
92 
93 
94 private:
95  uint16_t m_blink_time;
96 
97  void writeDataToDataPtr(std::vector<uint8_t>::iterator data_ptr) const;
98 };
99 
100 } // namespace cola2
101 } // namespace sick
102 
103 #endif // SICK_SAFETYSCANNERS_COLA2_FINDMECOMMAND_H
FindMeCommand(Cola2Session &session, uint16_t blink_time)
Constructor of the Command, takes the current session and time to blink for.
Command for method calls to the sensor.
Definition: MethodCommand.h:46
Method command class to make the scanner flash. To find the correct hardware.
Definition: FindMeCommand.h:50
sick::cola2::MethodCommand base_class
Typedef to reference the base class.
Definition: FindMeCommand.h:56
void writeDataToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
bool canBeExecutedWithoutSessionID() const
Returns if the command can be executed without a session ID. Will return false for most commands exce...
std::vector< uint8_t > addTelegramData(const std::vector< uint8_t > &telegram) const
Adds the settings as data to the packetbuffer.
bool processReply()
Processes the return from the sensor. Checks if the method was acknowledged by 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