6#include <eigen3/Eigen/Dense>
10#include <sys/socket.h>
17#include "./nlohmann/json.hpp"
56 "share/vertices_connections.csv";
101 Eigen::Matrix3d
m_rot_mat = Eigen::Matrix3d::Identity();
This class runs the client that handles the vertices coming from the python server face_mesh_server....
Eigen::MatrixXd incoming_data_callback(void)
Read incoming data.
const int m_vertices_num
Number of vertices provided by the mediapipe. This is constant.
Eigen::MatrixXi m_surf_indices
The surface element indices of the incoming mesh.
Eigen::MatrixXd get_vertices(void)
Get face vertices.
int m_socket
Socket handle.
Eigen::Matrix3d m_rot_mat
Face rotation matrix.
Eigen::Matrix3d m_scale_mat
double m_face_mesh_scale
Face scale matrix.
Eigen::MatrixXi m_faces
Face landmarking indices matrix.
std::string m_vertices_connections_rel_filename
Relative name of vertices connection files.
Eigen::Vector3d m_face_offset
Eigen::MatrixXd translation_matrix(const Eigen::Vector3d &offset, size_t vert_num)
This function offset a set of vertices by a given offset.
std::string m_local_ip_address
Start tcp client at this ip adress (localhost).
Eigen::MatrixXd m_vol_mesh_vertices
Volume mesh data.
bool m_return_value
Termination flag for callback function.
Eigen::MatrixXi get_surface_indices(void)
Get the surface indices of the face mesh.
void setup_tcp_communication(void)
Setup communication with python server.
std::future< Eigen::MatrixXd > m_future_fun
Future function handle.
std::filesystem::path m_vertices_connections_abs_path
Absolute name of vertices connection files.