Monocular Human Position Estimator
include
PoseTransformer.hpp
Go to the documentation of this file.
1
12
/*
13
Monocular Human Position Estimator
14
15
Copyright © 2021
16
17
Permission is hereby granted, free of charge, to any person obtaining a copy of
18
this software and associated documentation files (the "Software"), to deal in
19
the Software without restriction, including without limitation the rights to
20
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
21
of the Software, and to permit persons to whom the Software is furnished to do
22
so, subject to the following conditions:
23
24
The above copyright notice and this permission notice shall be included in all
25
copies or substantial portions of the Software.
26
27
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
SOFTWARE.
34
*/
35
36
#pragma once
37
38
#include <eigen3/Eigen/Dense>
39
#include <vector>
40
41
class
PoseTransformer
{
42
public
:
43
PoseTransformer
();
44
void
set_cam_frame
(std::vector<double>);
45
void
set_robot_frame
(std::vector<double>);
46
std::vector<double>
get_pose_in_robot_frame
(std::vector<double>);
47
48
private
:
49
Eigen::Matrix3d get_rotation_matrix(std::vector<double>);
50
Eigen::Matrix4d robotFrame;
51
Eigen::Matrix4d camFrame;
52
};
PoseTransformer
Definition:
PoseTransformer.hpp:41
PoseTransformer::PoseTransformer
PoseTransformer()
Explicit constructor for PoseTransformer class. Initializes robot frame and camera frame as an identi...
Definition:
PoseTransformer.cpp:44
PoseTransformer::set_cam_frame
void set_cam_frame(std::vector< double >)
Sets camera frame by creating 4x4 homogenous matrix based on camera's translation and rotation w....
Definition:
PoseTransformer.cpp:84
PoseTransformer::get_pose_in_robot_frame
std::vector< double > get_pose_in_robot_frame(std::vector< double >)
Transforms coordinates from camera frame to robot frame.
Definition:
PoseTransformer.cpp:123
PoseTransformer::set_robot_frame
void set_robot_frame(std::vector< double >)
Sets robot frame by creating 4x4 homogenous matrix based on robot's translation and rotation w....
Definition:
PoseTransformer.cpp:103
Generated by
1.8.17