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
sick::cola2::FindMeCommand::base_class
sick::cola2::MethodCommand base_class
Typedef to reference the base class.
Definition: FindMeCommand.h:56
sick::cola2::FindMeCommand::addTelegramData
std::vector< uint8_t > addTelegramData(const std::vector< uint8_t > &telegram) const
Adds the settings as data to the packetbuffer.
Definition: FindMeCommand.cpp:50
MethodCommand.h
sick
Definition: ApplicationNameVariableCommand.h:43
sick::cola2::FindMeCommand::processReply
bool processReply()
Processes the return from the sensor. Checks if the method was acknowledged by the sensor.
Definition: FindMeCommand.cpp:74
sick::cola2::Cola2Session
Establishes a cola2 session with a sensor and enables execution of commands in this session.
Definition: Cola2Session.h:72
CommSettings.h
sick::cola2::FindMeCommand::m_blink_time
uint16_t m_blink_time
Definition: FindMeCommand.h:95
sick::cola2::FindMeCommand
Method command class to make the scanner flash. To find the correct hardware.
Definition: FindMeCommand.h:50
sick::cola2::FindMeCommand::canBeExecutedWithoutSessionID
bool canBeExecutedWithoutSessionID() const
Returns if the command can be executed without a session ID. Will return false for most commands exce...
Definition: FindMeCommand.cpp:69
sick::cola2::FindMeCommand::writeDataToDataPtr
void writeDataToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
Definition: FindMeCommand.cpp:64
sick::cola2::FindMeCommand::FindMeCommand
FindMeCommand(Cola2Session &session, uint16_t blink_time)
Constructor of the Command, takes the current session and time to blink for.
Definition: FindMeCommand.cpp:44
sick::cola2::MethodCommand
Command for method calls to the sensor.
Definition: MethodCommand.h:46


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