AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
RealSenseManager.cpp
Go to the documentation of this file.
1//
2// RealSenseManager.cpp
3// AI Watch A1
4//
5// Created by Denny Caruso on 23/07/22.
6//
7
8// License: Apache 2.0. See LICENSE file in root directory.
9// Copyright(c) 2022. All Rights Reserved.
10
11#include "RealSenseManager.hpp"
12
13
14
15void RealSenseManager::setFrameID (unsigned int frameID) {
16 this->frameID = frameID;
17}
18
19void RealSenseManager::set_align (rs2::align align) {
20 this->align = align;
21}
22
23void RealSenseManager::set_depth_intrin (struct rs2_intrinsics depth_intrin) {
24 this->depth_intrin = depth_intrin;
25}
26
27void RealSenseManager::set_color_intrin (struct rs2_intrinsics & color_intrin) {
28 this->color_intrin = color_intrin;
29}
30
31void RealSenseManager::set_depth_to_color (struct rs2_extrinsics depth_to_color) {
32 this->depth_to_color = depth_to_color;
33}
34
35void RealSenseManager::set_color_to_depth (struct rs2_extrinsics color_to_depth) {
36 this->color_to_depth = color_to_depth;
37}
38
39rs2::align RealSenseManager::get_align (void) {
40 return this->align;
41}
42
43struct rs2_intrinsics RealSenseManager::get_depth_intrin (void) {
44 return this->depth_intrin;
45}
46
47struct rs2_extrinsics RealSenseManager::get_depth_to_color (void) {
48 return this->depth_to_color;
49}
50
51struct rs2_extrinsics RealSenseManager::get_color_to_depth (void) {
52 return this->color_to_depth;
53}
54
55
56
57RealSenseManager::RealSenseManager (void) : align(RS2_STREAM_COLOR) {
58 setFrameID(0);
59}
60
61unsigned int RealSenseManager::getFrameID (void) {
62 return this->frameID;
63}
64
65struct rs2_intrinsics & RealSenseManager::get_color_intrin (void) {
66 return this->color_intrin;
67}
RealSenseManager class is a class that abstracts the behavior of an Intel RealSense Camera,...
void setFrameID(unsigned int frameID)
Set the Frame ID value.
void set_depth_to_color(struct rs2_extrinsics depth_to_color)
Set the depth extrinsics object.
struct rs2_extrinsics depth_to_color
Reference to depth stream extrinsics.
void set_color_intrin(struct rs2_intrinsics &color_intrin)
Set the color intrinsics object.
void set_depth_intrin(struct rs2_intrinsics depth_intrin)
Set the depth intrinsics object.
struct rs2_intrinsics & get_color_intrin(void)
Get the color intrinsics object.
void set_align(rs2::align align)
Set the align object.
void set_color_to_depth(struct rs2_extrinsics color_to_depth)
Set the color extrinsics object.
rs2::align align
Auxiliary processing block that performs image alignment using depth data and camera calibration.
unsigned int getFrameID(void)
Get the current frame ID value.
struct rs2_intrinsics color_intrin
Reference to color stream intrinsics.
unsigned int frameID
Current frame counter.
rs2::align get_align(void)
Get the align object.
RealSenseManager(void)
Construct a new RealSenseManager object.
struct rs2_intrinsics depth_intrin
Reference to depth stream intrinsics.
struct rs2_extrinsics color_to_depth
Reference to color stream extrinsics.