AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
Room.cpp
Go to the documentation of this file.
1//
2// Room.cpp
3// AI_Watch_A1
4//
5// Created by Denny Caruso on 27/09/22.
6//
7
8// License: Apache 2.0. See LICENSE file in root directory.
9// Copyright(c) 2022. All Rights Reserved.
10
11#include "Room.hpp"
12
14 this->_minWidth = minWidth;
15}
16
18 this->_maxWidth = maxWidth;
19}
20
22 this->_minHeight = minHeight;
23}
24
26 this->_maxHeight = maxHeight;
27}
28
30 this->_maxDepth = maxDepth;
31}
32
34 this->_minWidthRS = minWidthRS;
35}
36
38 this->_maxWidthRS = maxWidthRS;
39}
40
43}
44
47}
48
51}
52
55}
56
59}
60
63}
64
65
66
67Room::Room (float minWidth, float maxWidth, float minHeight, float maxHeight, float maxDepth,
68 float minWidthRS, float maxWidthRS, float minHeightRS, float maxHeightRS,
70 setMinWidth(minWidth);
83}
84
85float Room::getMinWidth (void) {
86 return this->_minWidth;
87}
88
89float Room::getMaxWidth (void) {
90 return this->_maxWidth;
91}
92
93float Room::getMinHeight (void) {
94 return this->_minHeight;
95}
96
97float Room::getMaxHeight (void) {
98 return this->_maxHeight;
99}
100
101float Room::getMaxDepth(void) {
102 return this->_maxDepth;
103}
104
106 return this->_minWidthRS;
107}
108
110 return this->_maxWidthRS;
111}
112
114 return this->_minHeightRS;
115}
116
118 return this->_maxHeightRS;
119}
120
122 return this->_xOriginUnity;
123}
124
126 return this->_zOriginUnity;
127}
128
130 return this->_distanceCameraFromBackWall;
131}
132
134 return this->_heightOffset;
135}
static const float distanceCameraFromBackWall
Definition: Room.hpp:32
static const float maxWidthRS
Definition: Room.hpp:25
static const float zOriginUnity
Definition: Room.hpp:30
static const float xOriginUnity
Definition: Room.hpp:29
static const float minWidth
Definition: Room.hpp:17
static const float minWidthRS
Definition: Room.hpp:24
static const float minHeightRS
Definition: Room.hpp:26
static const float minHeight
Definition: Room.hpp:19
static const float heightOffset
Definition: Room.hpp:33
static const float maxWidth
Definition: Room.hpp:18
static const float maxHeight
Definition: Room.hpp:20
static const float maxHeightRS
Definition: Room.hpp:27
static const float maxDepth
Definition: Room.hpp:21
float _minWidthRS
RealSense environment's minimum width.
Definition: Room.hpp:90
float getMaxWidthRS(void)
Get the RealSense environment's maximum width.
Definition: Room.cpp:109
float getMinHeight(void)
Get the Room's minimum height.
Definition: Room.cpp:93
float getMinHeightRS(void)
Get the RealSense environment's minimum height.
Definition: Room.cpp:113
float getMaxHeightRS(void)
Get the RealSense environment's maximum height.
Definition: Room.cpp:117
void setMaxWidth(float maxWidth)
Set the Room's maximum width.
Definition: Room.cpp:17
float _heightOffset
Specific offset that is experimentally considered optimal in order to get more accurate height's meas...
Definition: Room.hpp:122
float _minHeight
Room's minimum height.
Definition: Room.hpp:77
void setMaxHeight(float maxHeight)
Set the Room's maximum height.
Definition: Room.cpp:25
float getMinWidth(void)
Get the Room's minimum width.
Definition: Room.cpp:85
float _distanceCameraFromBackWall
Distance between the camera lens and the wall back to the camera.
Definition: Room.hpp:117
void setMaxWidthRS(float maxWidthRS)
Set the RealSense environment's maximum width.
Definition: Room.cpp:37
void setMinWidth(float minWidth)
Set the Room's minimum width.
Definition: Room.cpp:13
float getDistanceCameraFromBackWall(void)
Get the distance between the camera lens and the wall back to the camera.
Definition: Room.cpp:129
float getMaxDepth(void)
Get the Room's maximum depth.
Definition: Room.cpp:101
void setMinHeightRS(float minHeightRS)
Set the RealSense environment's minimum height.
Definition: Room.cpp:41
float _minWidth
Room's minimum width.
Definition: Room.hpp:69
void setMaxHeightRS(float maxHeightRS)
Set the RealSense environment's maximum height.
Definition: Room.cpp:45
float _maxHeightRS
RealSense environment's maximum height.
Definition: Room.hpp:102
void setHeightOffset(float heightOffset)
Set the height offset.
Definition: Room.cpp:61
void setMaxDepth(float maxHeight)
Set the Room's maximum depth.
Definition: Room.cpp:29
void setMinWidthRS(float minWidthRS)
Set the RealSense environment's minimum width.
Definition: Room.cpp:33
float getHeightOffset(void)
Get the height offset.
Definition: Room.cpp:133
float _maxWidthRS
RealSense environment's maximum width.
Definition: Room.hpp:94
float _maxHeight
Room's maximum height.
Definition: Room.hpp:81
float _maxDepth
Room's maximum depth.
Definition: Room.hpp:85
float getXOriginUnity(void)
Get the Ddgital twin's x axis' origin.
Definition: Room.cpp:121
void setDistanceCameraFromBackWall(float distanceCameraFromBackWall)
Set the distance between the camera lens and the wall back to the camera.
Definition: Room.cpp:57
void setXOriginUnity(float xOriginUnity)
Set the digital twin's x axis' origin.
Definition: Room.cpp:49
float _zOriginUnity
Digital twin's z axis' origin.
Definition: Room.hpp:112
float _maxWidth
Room's maximum width.
Definition: Room.hpp:73
void setZOriginUnity(float zOriginUnity)
Set the digital twin's z axis' origin.
Definition: Room.cpp:53
float getMaxHeight(void)
Get the Room's maximum height.
Definition: Room.cpp:97
Room(float minWidth, float maxWidth, float minHeight, float maxHeight, float maxDepth, float minWidthRS, float maxWidthRS, float minHeightRS, float maxHeightRS, float xOriginUnity, float zOriginUnity, float distanceCameraFromBackWall, float heightOffset)
Construct a new Room object.
Definition: Room.cpp:67
float getZOriginUnity(void)
Get the digital twin's z axis' origin.
Definition: Room.cpp:125
float getMaxWidth(void)
Get the Room's maximum width.
Definition: Room.cpp:89
float _minHeightRS
RealSense environment's minimum height.
Definition: Room.hpp:98
float _xOriginUnity
Digital twin's x axis' origin.
Definition: Room.hpp:108
float getMinWidthRS(void)
Get the RealSense environment's minimum width.
Definition: Room.cpp:105
void setMinHeight(float minHeight)
Set the Room's minimum height.
Definition: Room.cpp:21