AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
|
The UnityCoordinateMappingManager class is a class that is responsible for converting coordinates values from a coordinates' space to Unity coordinates' space whose parameters are specified at the top of this header file. More...
#include <CoordinateMappingManager.hpp>
Public Member Functions | |
UnityCoordinateMappingManager (Room room) | |
Construct a new Unity Coordinate Mapping Manager object. More... | |
std::vector< Point3D * > * | mapToMeters (std::vector< Point3D * > pointsToMap, std::vector< bool > bodyKeyPointsMap, float xOrigin, float zOrigin) override |
This method requires pointers' Point3D's vector, the related vector map, and the original coordinates' space origins. It returns a pointer to pointers' Point3D's vector that actually contains all input Points whose coordinates' values have been converted to the new coordinates' space. In this case, the method converts the values to Unity coordinates' space values whose configuration parameters are specified at the top of this header file. More... | |
Protected Member Functions | |
Room | getRoom (void) |
Returns the room object. More... | |
float | transformWidthCoordinate (float widthCoordinate) |
Converts width value. More... | |
float | transformHeightCoordinate (float heightCoordinate) |
Converts height value. More... | |
float | inverseTransform (float inputNumber) |
Implements the inverse conversion on the input value. More... | |
Protected Attributes | |
const Room | room |
Specific room within which the coordinate mapping will be done. More... | |
The UnityCoordinateMappingManager class is a class that is responsible for converting coordinates values from a coordinates' space to Unity coordinates' space whose parameters are specified at the top of this header file.
Definition at line 86 of file CoordinateMappingManager.hpp.
UnityCoordinateMappingManager::UnityCoordinateMappingManager | ( | Room | room | ) |
Construct a new Unity Coordinate Mapping Manager object.
room | Specific room within which the Unity' coordinate mapping will be done. |
Definition at line 15 of file UnityCoordinateMappingManager.cpp.
|
protectedinherited |
Returns the room object.
Definition at line 16 of file CoordinateMappingManager.cpp.
References CoordinateMappingManager::room.
Referenced by CoordinateMappingManager::mapToMeters(), mapToMeters(), CoordinateMappingManager::transformHeightCoordinate(), and CoordinateMappingManager::transformWidthCoordinate().
|
protectedinherited |
Implements the inverse conversion on the input value.
inputNumber | Input value to convert. |
Definition at line 42 of file CoordinateMappingManager.cpp.
|
overridevirtual |
This method requires pointers' Point3D's vector, the related vector map, and the original coordinates' space origins. It returns a pointer to pointers' Point3D's vector that actually contains all input Points whose coordinates' values have been converted to the new coordinates' space. In this case, the method converts the values to Unity coordinates' space values whose configuration parameters are specified at the top of this header file.
pointsToMap | |
bodyKeyPointsMap | |
xOrigin | |
zOrigin |
Reimplemented from CoordinateMappingManager.
Definition at line 17 of file UnityCoordinateMappingManager.cpp.
References CoordinateMappingManager::getRoom(), CoordinateMappingManager::transformHeightCoordinate(), and CoordinateMappingManager::transformWidthCoordinate().
|
protectedinherited |
Converts height value.
heightCoordinate | Input height value. |
Definition at line 26 of file CoordinateMappingManager.cpp.
References Room::getHeightOffset(), Room::getMaxHeight(), Room::getMaxHeightRS(), and CoordinateMappingManager::getRoom().
Referenced by CoordinateMappingManager::mapToMeters(), and mapToMeters().
|
protectedinherited |
Converts width value.
widthCoordinate | Input width value. |
Definition at line 20 of file CoordinateMappingManager.cpp.
References Room::getMinWidth(), and CoordinateMappingManager::getRoom().
Referenced by CoordinateMappingManager::mapToMeters(), and mapToMeters().
|
protectedinherited |
Specific room within which the coordinate mapping will be done.
Definition at line 33 of file CoordinateMappingManager.hpp.
Referenced by CoordinateMappingManager::getRoom().