AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
|
Room class represents the Room abstraction. A Room object has different specifications, such as width and height. Furthermore, since we are interested in the conversion from real-world coordinates to Unity coordinates, it's important to have some more informations, such as the axes' origins of the digital twin room and the camera's coordinates' interval value. More...
#include <Room.hpp>
Public Member Functions | |
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. More... | |
float | getMinWidth (void) |
Get the Room's minimum width. More... | |
float | getMaxWidth (void) |
Get the Room's maximum width. More... | |
float | getMinHeight (void) |
Get the Room's minimum height. More... | |
float | getMaxHeight (void) |
Get the Room's maximum height. More... | |
float | getMaxDepth (void) |
Get the Room's maximum depth. More... | |
float | getMinWidthRS (void) |
Get the RealSense environment's minimum width. More... | |
float | getMaxWidthRS (void) |
Get the RealSense environment's maximum width. More... | |
float | getMinHeightRS (void) |
Get the RealSense environment's minimum height. More... | |
float | getMaxHeightRS (void) |
Get the RealSense environment's maximum height. More... | |
float | getXOriginUnity (void) |
Get the Ddgital twin's x axis' origin. More... | |
float | getZOriginUnity (void) |
Get the digital twin's z axis' origin. More... | |
float | getDistanceCameraFromBackWall (void) |
Get the distance between the camera lens and the wall back to the camera. More... | |
float | getHeightOffset (void) |
Get the height offset. More... | |
Protected Member Functions | |
void | setMinWidth (float minWidth) |
Set the Room's minimum width. More... | |
void | setMaxWidth (float maxWidth) |
Set the Room's maximum width. More... | |
void | setMinHeight (float minHeight) |
Set the Room's minimum height. More... | |
void | setMaxHeight (float maxHeight) |
Set the Room's maximum height. More... | |
void | setMaxDepth (float maxHeight) |
Set the Room's maximum depth. More... | |
void | setMinWidthRS (float minWidthRS) |
Set the RealSense environment's minimum width. More... | |
void | setMaxWidthRS (float maxWidthRS) |
Set the RealSense environment's maximum width. More... | |
void | setMinHeightRS (float minHeightRS) |
Set the RealSense environment's minimum height. More... | |
void | setMaxHeightRS (float maxHeightRS) |
Set the RealSense environment's maximum height. More... | |
void | setXOriginUnity (float xOriginUnity) |
Set the digital twin's x axis' origin. More... | |
void | setZOriginUnity (float zOriginUnity) |
Set the digital twin's z axis' origin. More... | |
void | setDistanceCameraFromBackWall (float distanceCameraFromBackWall) |
Set the distance between the camera lens and the wall back to the camera. More... | |
void | setHeightOffset (float heightOffset) |
Set the height offset. More... | |
Private Attributes | |
float | _minWidth |
Room's minimum width. More... | |
float | _maxWidth |
Room's maximum width. More... | |
float | _minHeight |
Room's minimum height. More... | |
float | _maxHeight |
Room's maximum height. More... | |
float | _maxDepth |
Room's maximum depth. More... | |
float | _minWidthRS |
RealSense environment's minimum width. More... | |
float | _maxWidthRS |
RealSense environment's maximum width. More... | |
float | _minHeightRS |
RealSense environment's minimum height. More... | |
float | _maxHeightRS |
RealSense environment's maximum height. More... | |
float | _xOriginUnity |
Digital twin's x axis' origin. More... | |
float | _zOriginUnity |
Digital twin's z axis' origin. More... | |
float | _distanceCameraFromBackWall |
Distance between the camera lens and the wall back to the camera. More... | |
float | _heightOffset |
Specific offset that is experimentally considered optimal in order to get more accurate height's measurements. More... | |
Room class represents the Room abstraction. A Room object has different specifications, such as width and height. Furthermore, since we are interested in the conversion from real-world coordinates to Unity coordinates, it's important to have some more informations, such as the axes' origins of the digital twin room and the camera's coordinates' interval value.
Room::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.
minWidth | Room's minimum width. |
maxWidth | Room's maximum width. |
minHeight | Room's minimum height. |
maxHeight | Room's maximum height. |
minWidthRS | RealSense environment's minimum width. |
maxWidthRS | RealSense environment's maximum width. |
minHeightRS | RealSense environment's minimum height. |
maxHeightRS | RealSense environment's maximum height. |
xOriginUnity | Digital twin's x axis' origin. |
zOriginUnity | Digital twin's z axis' origin. |
distanceCameraFromBackWall | Distance between the camera lens and the wall back to the camera. |
heightOffset | Specific offset that is experimentally considered optimal in order to get more accurate height's measurements. |
Definition at line 67 of file Room.cpp.
References distanceCameraFromBackWall, heightOffset, maxDepth, maxHeight, maxHeightRS, maxWidth, maxWidthRS, minHeight, minHeightRS, minWidthRS, setDistanceCameraFromBackWall(), setHeightOffset(), setMaxDepth(), setMaxHeight(), setMaxHeightRS(), setMaxWidth(), setMaxWidthRS(), setMinHeight(), setMinHeightRS(), setMinWidth(), setMinWidthRS(), setXOriginUnity(), setZOriginUnity(), xOriginUnity, and zOriginUnity.
float Room::getDistanceCameraFromBackWall | ( | void | ) |
Get the distance between the camera lens and the wall back to the camera.
Definition at line 129 of file Room.cpp.
References _distanceCameraFromBackWall.
float Room::getHeightOffset | ( | void | ) |
Get the height offset.
Definition at line 133 of file Room.cpp.
References _heightOffset.
Referenced by CoordinateMappingManager::transformHeightCoordinate().
float Room::getMaxDepth | ( | void | ) |
float Room::getMaxHeight | ( | void | ) |
Get the Room's maximum height.
Definition at line 97 of file Room.cpp.
References _maxHeight.
Referenced by CoordinateMappingManager::transformHeightCoordinate().
float Room::getMaxHeightRS | ( | void | ) |
Get the RealSense environment's maximum height.
Definition at line 117 of file Room.cpp.
References _maxHeightRS.
Referenced by CoordinateMappingManager::transformHeightCoordinate().
float Room::getMaxWidth | ( | void | ) |
float Room::getMaxWidthRS | ( | void | ) |
Get the RealSense environment's maximum width.
Definition at line 109 of file Room.cpp.
References _maxWidthRS.
float Room::getMinHeight | ( | void | ) |
Get the Room's minimum height.
Definition at line 93 of file Room.cpp.
References _minHeight.
float Room::getMinHeightRS | ( | void | ) |
Get the RealSense environment's minimum height.
Definition at line 113 of file Room.cpp.
References _minHeightRS.
float Room::getMinWidth | ( | void | ) |
Get the Room's minimum width.
Definition at line 85 of file Room.cpp.
References _minWidth.
Referenced by CoordinateMappingManager::transformWidthCoordinate().
float Room::getMinWidthRS | ( | void | ) |
Get the RealSense environment's minimum width.
Definition at line 105 of file Room.cpp.
References _minWidthRS.
float Room::getXOriginUnity | ( | void | ) |
Get the Ddgital twin's x axis' origin.
Definition at line 121 of file Room.cpp.
References _xOriginUnity.
float Room::getZOriginUnity | ( | void | ) |
Get the digital twin's z axis' origin.
Definition at line 125 of file Room.cpp.
References _zOriginUnity.
|
protected |
Set the distance between the camera lens and the wall back to the camera.
distanceCameraFromBackWall | Distance between the camera lens and the wall back to the camera. |
Definition at line 57 of file Room.cpp.
References _distanceCameraFromBackWall, and distanceCameraFromBackWall.
Referenced by Room().
|
protected |
Set the height offset.
heightOffset | Specific offset that is experimentally considered optimal in order to get more accurate height's measurements. |
Definition at line 61 of file Room.cpp.
References _heightOffset, and heightOffset.
Referenced by Room().
|
protected |
|
protected |
|
protected |
Set the RealSense environment's maximum height.
maxHeightRS | RealSense environment's maximum height. |
Definition at line 45 of file Room.cpp.
References _maxHeightRS, and maxHeightRS.
Referenced by Room().
|
protected |
|
protected |
Set the RealSense environment's maximum width.
maxWidthRS | RealSense environment's maximum width. |
Definition at line 37 of file Room.cpp.
References _maxWidthRS, and maxWidthRS.
Referenced by Room().
|
protected |
|
protected |
Set the RealSense environment's minimum height.
minHeightRS | RealSense environment's minimum height. |
Definition at line 41 of file Room.cpp.
References _minHeightRS, and minHeightRS.
Referenced by Room().
|
protected |
|
protected |
Set the RealSense environment's minimum width.
minWidthRS | RealSense environment's minimum width. |
Definition at line 33 of file Room.cpp.
References _minWidthRS, and minWidthRS.
Referenced by Room().
|
protected |
Set the digital twin's x axis' origin.
xOriginUnity | Digital twin's x axis' origin. |
Definition at line 49 of file Room.cpp.
References _xOriginUnity, and xOriginUnity.
Referenced by Room().
|
protected |
Set the digital twin's z axis' origin.
zOriginUnity | Digital twin's z axis' origin. |
Definition at line 53 of file Room.cpp.
References _zOriginUnity, and zOriginUnity.
Referenced by Room().
|
private |
Distance between the camera lens and the wall back to the camera.
Definition at line 117 of file Room.hpp.
Referenced by getDistanceCameraFromBackWall(), and setDistanceCameraFromBackWall().
|
private |
Specific offset that is experimentally considered optimal in order to get more accurate height's measurements.
Definition at line 122 of file Room.hpp.
Referenced by getHeightOffset(), and setHeightOffset().
|
private |
Room's maximum depth.
Definition at line 85 of file Room.hpp.
Referenced by getMaxDepth(), and setMaxDepth().
|
private |
Room's maximum height.
Definition at line 81 of file Room.hpp.
Referenced by getMaxHeight(), and setMaxHeight().
|
private |
RealSense environment's maximum height.
Definition at line 102 of file Room.hpp.
Referenced by getMaxHeightRS(), and setMaxHeightRS().
|
private |
Room's maximum width.
Definition at line 73 of file Room.hpp.
Referenced by getMaxWidth(), and setMaxWidth().
|
private |
RealSense environment's maximum width.
Definition at line 94 of file Room.hpp.
Referenced by getMaxWidthRS(), and setMaxWidthRS().
|
private |
Room's minimum height.
Definition at line 77 of file Room.hpp.
Referenced by getMinHeight(), and setMinHeight().
|
private |
RealSense environment's minimum height.
Definition at line 98 of file Room.hpp.
Referenced by getMinHeightRS(), and setMinHeightRS().
|
private |
Room's minimum width.
Definition at line 69 of file Room.hpp.
Referenced by getMinWidth(), and setMinWidth().
|
private |
RealSense environment's minimum width.
Definition at line 90 of file Room.hpp.
Referenced by getMinWidthRS(), and setMinWidthRS().
|
private |
Digital twin's x axis' origin.
Definition at line 108 of file Room.hpp.
Referenced by getXOriginUnity(), and setXOriginUnity().
|
private |
Digital twin's z axis' origin.
Definition at line 112 of file Room.hpp.
Referenced by getZOriginUnity(), and setZOriginUnity().