Kinematics Animation Multithread
kinematic_animation.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <igl/opengl/glfw/Viewer.h>
5
6#include "animated_hand.h"
7#include "exoskeleton.h"
8#include "menu_handler.h"
9#include "hand.h"
10
12
16{
17public:
20
22 void initialize(igl::opengl::glfw::Viewer* viewer,
23 Exoskeleton* left_exo, AnimatedHand* anim_hand,
24 MenuHandler* menu_handler);
25
27 bool animation_loop(igl::opengl::glfw::Viewer & viewer);
28
29
30private:
31
34
37
40
43
45 Eigen::Vector3d m_left_origin = Eigen::Vector3d(0.0, 0.2, 0.0);
46
48 Eigen::Vector3d m_right_origin = Eigen::Vector3d(0.0, -0.2, 0.0);
49
52
54 void setup_exoskeletons(igl::opengl::glfw::Viewer& viewer);
55
57 Eigen::Matrix3d m_camera_center;
58};
Class Exoskeleton.
Definition: exoskeleton.h:20
Class Hand.
Definition: hand.h:24
Class KinematicAnimation.
void initialize(igl::opengl::glfw::Viewer *viewer, Exoskeleton *left_exo, AnimatedHand *anim_hand, MenuHandler *menu_handler)
Initialize animation.
MenuHandler * m_menu_handler
Menu handler pointer.
Eigen::Matrix3d m_camera_center
Camera matrix.
bool m_initialize_animation
Bool start animation.
Eigen::Vector3d m_left_origin
Left hand origin.
KinematicAnimation()
Constructor.
Eigen::Vector3d m_right_origin
Right hand origin.
AnimatedHand * m_anim_hand
Animated hand pointer.
void setup_exoskeletons(igl::opengl::glfw::Viewer &viewer)
Setup exoskeletons.
Hand m_left_hand
Left and right hand.
Exoskeleton * m_left_exo
Exoskeleton handler pointer.
bool animation_loop(igl::opengl::glfw::Viewer &viewer)
Animation loop callback.
Class MenuHandler.
Definition: menu_handler.h:23