Main Page
Namespaces
Classes
Files
File List
File Members
src
datastructure
ApplicationInputs.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
35
#include <
sick_safetyscanners/datastructure/ApplicationInputs.h
>
36
37
namespace
sick
{
38
namespace
datastructure {
39
40
ApplicationInputs::ApplicationInputs
() {}
41
42
std::vector<bool>
ApplicationInputs::getUnsafeInputsInputSourcesVector
()
const
43
{
44
return
m_unsafe_inputs_input_sources_vector
;
45
}
46
47
void
ApplicationInputs::setUnsafeInputsInputSourcesVector
(
48
const
std::vector<bool>& unsafe_inputs_input_sources_vector)
49
{
50
m_unsafe_inputs_input_sources_vector
= unsafe_inputs_input_sources_vector;
51
}
52
53
std::vector<bool>
ApplicationInputs::getUnsafeInputsFlagsVector
()
const
54
{
55
return
m_unsafe_inputs_flags_vector
;
56
}
57
58
void
ApplicationInputs::setUnsafeInputsFlagsVector
(
59
const
std::vector<bool>& unsafe_inputs_flags_vector)
60
{
61
m_unsafe_inputs_flags_vector
= unsafe_inputs_flags_vector;
62
}
63
64
std::vector<uint16_t>
ApplicationInputs::getMonitoringCasevector
()
const
65
{
66
return
m_monitoring_case_vector
;
67
}
68
69
void
ApplicationInputs::setMonitoringCaseVector
(
const
std::vector<uint16_t>& monitoring_case_vector)
70
{
71
m_monitoring_case_vector
= monitoring_case_vector;
72
}
73
74
std::vector<bool>
ApplicationInputs::getMonitoringCaseFlagsVector
()
const
75
{
76
return
m_monitoring_case_flags_vector
;
77
}
78
79
void
ApplicationInputs::setMonitoringCaseFlagsVector
(
80
const
std::vector<bool>& monitoring_case_flags_vector)
81
{
82
m_monitoring_case_flags_vector
= monitoring_case_flags_vector;
83
}
84
85
int16_t
ApplicationInputs::getVelocity0
()
const
86
{
87
return
m_velocity_0
;
88
}
89
90
void
ApplicationInputs::setVelocity0
(
const
int16_t& velocity_0)
91
{
92
m_velocity_0
= velocity_0;
93
}
94
95
int16_t
ApplicationInputs::getVelocity1
()
const
96
{
97
return
m_velocity_1
;
98
}
99
100
void
ApplicationInputs::setVelocity1
(
const
int16_t& velocity_1)
101
{
102
m_velocity_1
= velocity_1;
103
}
104
105
bool
ApplicationInputs::getVelocity0Valid
()
const
106
{
107
return
m_velocity_0_valid
;
108
}
109
110
void
ApplicationInputs::setVelocity0Valid
(
bool
velocity_0_valid)
111
{
112
m_velocity_0_valid
= velocity_0_valid;
113
}
114
115
bool
ApplicationInputs::getVelocity1Valid
()
const
116
{
117
return
m_velocity_1_valid
;
118
}
119
120
void
ApplicationInputs::setVelocity1Valid
(
bool
velocity_1_valid)
121
{
122
m_velocity_1_valid
= velocity_1_valid;
123
}
124
125
bool
ApplicationInputs::getVelocity0TransmittedSafely
()
const
126
{
127
return
m_velocity_0_transmitted_safely
;
128
}
129
130
void
ApplicationInputs::setVelocity0TransmittedSafely
(
bool
velocity_0_transmitted_safely)
131
{
132
m_velocity_0_transmitted_safely
= velocity_0_transmitted_safely;
133
}
134
135
bool
ApplicationInputs::getVelocity1TransmittedSafely
()
const
136
{
137
return
m_velocity_1_transmitted_safely
;
138
}
139
140
void
ApplicationInputs::setVelocity1TransmittedSafely
(
bool
velocity_1_transmitted_safely)
141
{
142
m_velocity_1_transmitted_safely
= velocity_1_transmitted_safely;
143
}
144
145
int8_t
ApplicationInputs::getSleepModeInput
()
const
146
{
147
return
m_sleep_mode_input
;
148
}
149
150
void
ApplicationInputs::setSleepModeInput
(
const
int8_t& sleep_mode_input)
151
{
152
m_sleep_mode_input
= sleep_mode_input;
153
}
154
155
}
// namespace datastructure
156
}
// namespace sick
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::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
ApplicationInputs.h
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