SegmentationZone.cpp
Go to the documentation of this file.
1 
12 // RAIL Segmentation
14 
15 // C++ Standard Library
16 #include <limits>
17 
18 using namespace std;
19 using namespace rail::segmentation;
20 
21 SegmentationZone::SegmentationZone(const string &name, const string &parent_frame_id, const string &child_frame_id,
22  const string &bounding_frame_id, const string &segmentation_frame_id)
23  : name_(name), parent_frame_id_(parent_frame_id), child_frame_id_(child_frame_id),
24  bounding_frame_id_(bounding_frame_id), segmentation_frame_id_(segmentation_frame_id)
25 {
26  // default remove surface
27  remove_surface_ = true;
28 
29  // set default limits
30  roll_min_ = -numeric_limits<double>::infinity();
31  pitch_min_ = -numeric_limits<double>::infinity();
32  yaw_min_ = -numeric_limits<double>::infinity();
33  x_min_ = -numeric_limits<double>::infinity();
34  y_min_ = -numeric_limits<double>::infinity();
35  z_min_ = -numeric_limits<double>::infinity();
36 
37  roll_max_ = numeric_limits<double>::infinity();
38  pitch_max_ = numeric_limits<double>::infinity();
39  yaw_max_ = numeric_limits<double>::infinity();
40  x_max_ = numeric_limits<double>::infinity();
41  y_max_ = numeric_limits<double>::infinity();
42  z_max_ = numeric_limits<double>::infinity();
43 }
44 
45 void SegmentationZone::setRemoveSurface(const bool remove_surface)
46 {
47  remove_surface_ = remove_surface;
48 }
49 
51 {
52  return remove_surface_;
53 }
54 
55 void SegmentationZone::setName(const string &name)
56 {
57  name_ = name;
58 }
59 
60 const string &SegmentationZone::getName() const
61 {
62  return name_;
63 }
64 
65 void SegmentationZone::setParentFrameID(const string &parent_frame_id)
66 {
67  parent_frame_id_ = parent_frame_id;
68 }
69 
71 {
72  return parent_frame_id_;
73 }
74 
75 void SegmentationZone::setChildFrameID(const string &child_frame_id)
76 {
77  child_frame_id_ = child_frame_id;
78 }
79 
80 const string &SegmentationZone::getChildFrameID() const
81 {
82  return child_frame_id_;
83 }
84 
85 void SegmentationZone::setSegmentationFrameID(const string &segmentation_frame_id)
86 {
87  segmentation_frame_id_ = segmentation_frame_id;
88 }
89 
91 {
93 }
94 
95 void SegmentationZone::setBoundingFrameID(const string &bounding_frame_id)
96 {
97  bounding_frame_id_ = bounding_frame_id;
98 }
99 
101 {
102  return bounding_frame_id_;
103 }
104 
105 void SegmentationZone::setRollMin(const double roll_min)
106 {
107  roll_min_ = roll_min;
108 }
109 
111 {
112  return roll_min_;
113 }
114 
115 void SegmentationZone::setRollMax(const double roll_max)
116 {
117  roll_max_ = roll_max;
118 }
119 
121 {
122  return roll_max_;
123 }
124 
125 void SegmentationZone::setPitchMin(const double pitch_min)
126 {
127  pitch_min_ = pitch_min;
128 }
129 
131 {
132  return pitch_min_;
133 }
134 
135 void SegmentationZone::setPitchMax(const double pitch_max)
136 {
137  pitch_max_ = pitch_max;
138 }
139 
141 {
142  return pitch_max_;
143 }
144 
145 void SegmentationZone::setYawMin(const double yaw_min)
146 {
147  yaw_min_ = yaw_min;
148 }
149 
151 {
152  return yaw_min_;
153 }
154 
155 void SegmentationZone::setYawMax(const double yaw_max)
156 {
157  yaw_max_ = yaw_max;
158 }
159 
161 {
162  return yaw_max_;
163 }
164 
165 
166 void SegmentationZone::setXMin(const double x_min)
167 {
168  x_min_ = x_min;
169 }
170 
172 {
173  return x_min_;
174 }
175 
176 void SegmentationZone::setXMax(const double x_max)
177 {
178  x_max_ = x_max;
179 }
180 
182 {
183  return x_max_;
184 }
185 
186 void SegmentationZone::setYMin(const double y_min)
187 {
188  y_min_ = y_min;
189 }
190 
192 {
193  return y_min_;
194 }
195 
196 void SegmentationZone::setYMax(const double y_max)
197 {
198  y_max_ = y_max;
199 }
200 
202 {
203  return y_max_;
204 }
205 
206 void SegmentationZone::setZMin(const double z_min)
207 {
208  z_min_ = z_min;
209 }
210 
212 {
213  return z_min_;
214 }
215 
216 void SegmentationZone::setZMax(const double z_max)
217 {
218  z_max_ = z_max;
219 }
220 
222 {
223  return z_max_;
224 }
void setName(const std::string &name)
Name value mutator.
double getYawMin() const
Yaw min value accessor.
double getPitchMax() const
Pitch max value accessor.
double getYawMax() const
Yaw max value accessor.
void setYawMin(const double yaw_min)
Yaw min value mutator.
double getZMax() const
Z max value accessor.
void setZMin(const double z_min)
Z min value mutator.
void setBoundingFrameID(const std::string &bounding_frame_id)
Bounding frame ID value mutator.
double getPitchMin() const
Pitch min value accessor.
void setYawMax(const double yaw_max)
Yaw max value mutator.
void setPitchMin(const double pitch_min)
Pitch min value mutator.
const std::string & getBoundingFrameID() const
Segmentation frame ID value accessor.
const std::string & getChildFrameID() const
Child frame ID value accessor.
double getYMin() const
Y min value accessor.
void setChildFrameID(const std::string &child_frame_id)
Child frame ID value mutator.
void setPitchMax(const double pitch_max)
Pitch max value mutator.
void setRollMin(const double roll_min)
Roll min value mutator.
void setYMin(const double y_min)
Y min value mutator.
const std::string & getParentFrameID() const
Parent frame ID value accessor.
double getXMax() const
X max value accessor.
double getZMin() const
Z min value accessor.
void setXMax(const double x_max)
X max value mutator.
double getYMax() const
Y max value accessor.
void setZMax(const double z_max)
Z max value mutator.
void setParentFrameID(const std::string &parent_frame_id)
Parent frame ID value mutator.
The criteria for a segmentation zone.
bool getRemoveSurface() const
Remove surface value accessor.
double getRollMax() const
Roll max value accessor.
double getXMin() const
X min value accessor.
const std::string & getSegmentationFrameID() const
Segmentation frame ID value accessor.
void setXMin(const double x_min)
X min value mutator.
void setRollMax(const double roll_max)
Roll max value mutator.
void setYMax(const double y_max)
Y max value mutator.
void setSegmentationFrameID(const std::string &segmentation_frame_id)
Segmentation frame ID value mutator.
void setRemoveSurface(const bool remove_surface)
Remove surface value mutator.
const std::string & getName() const
Name value accessor.
double getRollMin() const
Roll min value accessor.


rail_segmentation
Author(s): Russell Toris , David Kent
autogenerated on Sun Feb 16 2020 04:02:44