ChangeCommSettingsCommand.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_CHANGECOMMSETTINGSCOMMAND_H
37 #define SICK_SAFETYSCANNERS_COLA2_CHANGECOMMSETTINGSCOMMAND_H
38 
39 
42 
43 namespace sick {
44 namespace cola2 {
45 
46 
52 {
53 public:
58 
68 
69 
76  std::vector<uint8_t> addTelegramData(const std::vector<uint8_t>& telegram) const;
77 
78 
85  bool canBeExecutedWithoutSessionID() const;
86 
87 
94  bool processReply();
95 
96 
97 private:
99 
100  void writeDataToDataPtr(std::vector<uint8_t>::iterator data_ptr) const;
101  void writeChannelToDataPtr(std::vector<uint8_t>::iterator data_ptr) const;
102  void writeEnabledToDataPtr(std::vector<uint8_t>::iterator data_ptr) const;
103  void writeEInterfaceTypeToDataPtr(std::vector<uint8_t>::iterator data_ptr) const;
104  void writeIPAddresstoDataPtr(std::vector<uint8_t>::iterator data_ptr) const;
105  void writePortToDataPtr(std::vector<uint8_t>::iterator data_ptr) const;
106  void writeFrequencyToDataPtr(std::vector<uint8_t>::iterator data_ptr) const;
107  void writeStartAngleToDataPtr(std::vector<uint8_t>::iterator data_ptr) const;
108  void writeEndAngleToDataPtr(std::vector<uint8_t>::iterator data_ptr) const;
109  void writeFeaturesToDataPtr(std::vector<uint8_t>::iterator data_ptr) const;
110 };
111 
112 } // namespace cola2
113 } // namespace sick
114 
115 #endif // SICK_SAFETYSCANNERS_COLA2_CHANGECOMMSETTINGSCOMMAND_H
void writeFrequencyToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
Command for method calls to the sensor.
Definition: MethodCommand.h:46
void writeChannelToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
void writeStartAngleToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
void writeEInterfaceTypeToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
void writePortToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
void writeDataToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
bool processReply()
Processes the return from the sensor. Checks if the method was acknowledged by the sensor...
sick::datastructure::CommSettings m_settings
Containing the communication settings for the sensor which can be changed on runtime.
Definition: CommSettings.h:48
void writeIPAddresstoDataPtr(std::vector< uint8_t >::iterator data_ptr) const
Method command class for changing the settings in the sensor. Such as which data packages to enable...
std::vector< uint8_t > addTelegramData(const std::vector< uint8_t > &telegram) const
Adds the settings as data to the packetbuffer.
void writeFeaturesToDataPtr(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...
void writeEnabledToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
ChangeCommSettingsCommand(Cola2Session &session, const datastructure::CommSettings &settings)
Constructor of the Command, takes the current session and the new set of parameters for the sensor...
sick::cola2::MethodCommand base_class
Typedef to reference the base class.
void writeEndAngleToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
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