Main Page
Namespaces
Classes
Files
File List
File Members
include
sick_safetyscanners
datastructure
ApplicationInputs.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
#ifndef SICK_SAFETYSCANNERS_DATASTRUCTURE_APPLICATIONINPUTS_H
36
#define SICK_SAFETYSCANNERS_DATASTRUCTURE_APPLICATIONINPUTS_H
37
38
#include <stdint.h>
39
#include <vector>
40
41
namespace
sick
{
42
namespace
datastructure {
43
47
class
ApplicationInputs
48
{
49
public
:
53
ApplicationInputs
();
54
63
std::vector<bool>
getUnsafeInputsInputSourcesVector
()
const
;
64
void
70
setUnsafeInputsInputSourcesVector
(
const
std::vector<bool>& unsafe_inputs_input_sources_vector);
71
81
std::vector<bool>
getUnsafeInputsFlagsVector
()
const
;
87
void
setUnsafeInputsFlagsVector
(
const
std::vector<bool>& unsafe_inputs_flags_vector);
88
94
std::vector<uint16_t>
getMonitoringCasevector
()
const
;
100
void
setMonitoringCaseVector
(
const
std::vector<uint16_t>& monitoring_case_vector);
101
107
std::vector<bool>
getMonitoringCaseFlagsVector
()
const
;
113
void
setMonitoringCaseFlagsVector
(
const
std::vector<bool>& monitoring_case_flags_vector);
114
120
int16_t
getVelocity0
()
const
;
126
void
setVelocity0
(
const
int16_t& velocity_0);
127
133
int16_t
getVelocity1
()
const
;
139
void
setVelocity1
(
const
int16_t& velocity_1);
140
146
bool
getVelocity0Valid
()
const
;
152
void
setVelocity0Valid
(
bool
velocity_0_valid);
153
159
bool
getVelocity1Valid
()
const
;
165
void
setVelocity1Valid
(
bool
velocity_1_valid);
166
172
bool
getVelocity0TransmittedSafely
()
const
;
178
void
setVelocity0TransmittedSafely
(
bool
velocity_0_transmitted_safely);
179
185
bool
getVelocity1TransmittedSafely
()
const
;
191
void
setVelocity1TransmittedSafely
(
bool
velocity_1_transmitted_safely);
192
198
int8_t
getSleepModeInput
()
const
;
204
void
setSleepModeInput
(
const
int8_t& sleep_mode_input);
205
206
private
:
207
std::vector<bool>
m_unsafe_inputs_input_sources_vector
;
208
std::vector<bool>
m_unsafe_inputs_flags_vector
;
209
210
std::vector<uint16_t>
m_monitoring_case_vector
;
211
std::vector<bool>
m_monitoring_case_flags_vector
;
212
213
int16_t
m_velocity_0
;
214
int16_t
m_velocity_1
;
215
216
bool
m_velocity_0_valid
;
217
bool
m_velocity_1_valid
;
218
bool
m_velocity_0_transmitted_safely
;
219
bool
m_velocity_1_transmitted_safely
;
220
221
int8_t
m_sleep_mode_input
;
222
};
223
224
}
// namespace datastructure
225
}
// namespace sick
226
227
#endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_APPLICATIONINPUTS_H
sick::datastructure::ApplicationInputs::getMonitoringCasevector
std::vector< uint16_t > getMonitoringCasevector() const
Gets the monitoring case numbers.
Definition:
ApplicationInputs.cpp:64
sick::datastructure::ApplicationInputs::m_velocity_0_valid
bool m_velocity_0_valid
Definition:
ApplicationInputs.h:216
sick::datastructure::ApplicationInputs::m_sleep_mode_input
int8_t m_sleep_mode_input
Definition:
ApplicationInputs.h:221
sick::datastructure::ApplicationInputs::getVelocity0TransmittedSafely
bool getVelocity0TransmittedSafely() const
Gets if first linear velocity input is transmitted safely.
Definition:
ApplicationInputs.cpp:125
sick::datastructure::ApplicationInputs::getVelocity1
int16_t getVelocity1() const
Gets the second linear velocity input.
Definition:
ApplicationInputs.cpp:95
sick::datastructure::ApplicationInputs
The applications inputs from a udp data packet.
Definition:
ApplicationInputs.h:47
sick::datastructure::ApplicationInputs::getVelocity1TransmittedSafely
bool getVelocity1TransmittedSafely() const
Gets if second linear velocity input is transmitted safely.
Definition:
ApplicationInputs.cpp:135
sick::datastructure::ApplicationInputs::setVelocity1
void setVelocity1(const int16_t &velocity_1)
Sets the second linear velocity input.
Definition:
ApplicationInputs.cpp:100
sick::datastructure::ApplicationInputs::setVelocity0TransmittedSafely
void setVelocity0TransmittedSafely(bool velocity_0_transmitted_safely)
Sets if first linear velocity input is transmitted safely.
Definition:
ApplicationInputs.cpp:130
sick::datastructure::ApplicationInputs::getVelocity1Valid
bool getVelocity1Valid() const
Gets if second linear velocity input is valid.
Definition:
ApplicationInputs.cpp:115
sick::datastructure::ApplicationInputs::m_velocity_0
int16_t m_velocity_0
Definition:
ApplicationInputs.h:213
sick::datastructure::ApplicationInputs::getUnsafeInputsFlagsVector
std::vector< bool > getUnsafeInputsFlagsVector() const
Gets the flags for the unsafe input sources.
Definition:
ApplicationInputs.cpp:53
sick::datastructure::ApplicationInputs::getVelocity0
int16_t getVelocity0() const
Gets the first linear velocity input.
Definition:
ApplicationInputs.cpp:85
sick::datastructure::ApplicationInputs::m_velocity_1_transmitted_safely
bool m_velocity_1_transmitted_safely
Definition:
ApplicationInputs.h:219
sick::datastructure::ApplicationInputs::setMonitoringCaseVector
void setMonitoringCaseVector(const std::vector< uint16_t > &monitoring_case_vector)
Sets the monitoring case vector.
Definition:
ApplicationInputs.cpp:69
sick::datastructure::ApplicationInputs::getSleepModeInput
int8_t getSleepModeInput() const
Gets the state of the sleep mode.
Definition:
ApplicationInputs.cpp:145
sick::datastructure::ApplicationInputs::getVelocity0Valid
bool getVelocity0Valid() const
Gets if first linear velocity input is valid.
Definition:
ApplicationInputs.cpp:105
sick::datastructure::ApplicationInputs::setSleepModeInput
void setSleepModeInput(const int8_t &sleep_mode_input)
Sets the state of the sleep mode.
Definition:
ApplicationInputs.cpp:150
sick::datastructure::ApplicationInputs::m_unsafe_inputs_flags_vector
std::vector< bool > m_unsafe_inputs_flags_vector
Definition:
ApplicationInputs.h:208
sick::datastructure::ApplicationInputs::setVelocity0
void setVelocity0(const int16_t &velocity_0)
Sets the first linear velocity input.
Definition:
ApplicationInputs.cpp:90
sick::datastructure::ApplicationInputs::setUnsafeInputsFlagsVector
void setUnsafeInputsFlagsVector(const std::vector< bool > &unsafe_inputs_flags_vector)
Sets the unsafe input sources flags.
Definition:
ApplicationInputs.cpp:58
sick::datastructure::ApplicationInputs::m_unsafe_inputs_input_sources_vector
std::vector< bool > m_unsafe_inputs_input_sources_vector
Definition:
ApplicationInputs.h:207
sick::datastructure::ApplicationInputs::m_monitoring_case_vector
std::vector< uint16_t > m_monitoring_case_vector
Definition:
ApplicationInputs.h:210
sick::datastructure::ApplicationInputs::ApplicationInputs
ApplicationInputs()
Constructor of application inputs.
Definition:
ApplicationInputs.cpp:40
sick::datastructure::ApplicationInputs::setVelocity1Valid
void setVelocity1Valid(bool velocity_1_valid)
If second linear velocity input is valid.
Definition:
ApplicationInputs.cpp:120
sick
Definition:
ApplicationNameVariableCommand.h:43
sick::datastructure::ApplicationInputs::setVelocity1TransmittedSafely
void setVelocity1TransmittedSafely(bool velocity_1_transmitted_safely)
Sets if second linear velocity input is transmitted safely.
Definition:
ApplicationInputs.cpp:140
sick::datastructure::ApplicationInputs::m_monitoring_case_flags_vector
std::vector< bool > m_monitoring_case_flags_vector
Definition:
ApplicationInputs.h:211
sick::datastructure::ApplicationInputs::setMonitoringCaseFlagsVector
void setMonitoringCaseFlagsVector(const std::vector< bool > &monitoring_case_flags_vector)
Sets the monitoring case flags.
Definition:
ApplicationInputs.cpp:79
sick::datastructure::ApplicationInputs::m_velocity_0_transmitted_safely
bool m_velocity_0_transmitted_safely
Definition:
ApplicationInputs.h:218
sick::datastructure::ApplicationInputs::getMonitoringCaseFlagsVector
std::vector< bool > getMonitoringCaseFlagsVector() const
Gets the monitoring case flags.
Definition:
ApplicationInputs.cpp:74
sick::datastructure::ApplicationInputs::setUnsafeInputsInputSourcesVector
void setUnsafeInputsInputSourcesVector(const std::vector< bool > &unsafe_inputs_input_sources_vector)
Sets the unsafe input sources.
Definition:
ApplicationInputs.cpp:47
sick::datastructure::ApplicationInputs::getUnsafeInputsInputSourcesVector
std::vector< bool > getUnsafeInputsInputSourcesVector() const
Gets the unsafe input sources.
Definition:
ApplicationInputs.cpp:42
sick::datastructure::ApplicationInputs::m_velocity_1
int16_t m_velocity_1
Definition:
ApplicationInputs.h:214
sick::datastructure::ApplicationInputs::setVelocity0Valid
void setVelocity0Valid(bool velocity_0_valid)
Sets if first linear velocity input is valid.
Definition:
ApplicationInputs.cpp:110
sick::datastructure::ApplicationInputs::m_velocity_1_valid
bool m_velocity_1_valid
Definition:
ApplicationInputs.h:217
sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Apr 2 2021 02:45:41