PosturePerfection
Namespaces | Macros | Functions
posture_estimator.cpp File Reference
#include "posture_estimator.h"
#include <cmath>
#include <string>
Include dependency graph for posture_estimator.cpp:

Namespaces

 PostureEstimating
 Responsible for analysing the results of pose estimation to determine any posture changes which must be relayed to the user.
 

Macros

#define MIN_POSE_CHANGE_THRESHOLD   0.0
 0 degrees More...
 
#define MAX_POSE_CHANGE_THRESHOLD   0.5
 28.64 degrees More...
 
#define BAD_POSTURE_TIME   10000
 10 seconds More...
 
#define UNDEFINED_POSTURE_TIME   300000
 5 minutes More...
 
#define STOP_TIMER_TIME   2000
 2 seconds More...
 
#define BAD_POSTURE_NOTIFICATION_TIME   180000
 3 minutes More...
 
#define UNDEFINED_POSTURE_NOTIFICATION_TIME   600000
 10 minutes More...
 

Functions

std::string PostureEstimating::stringJoint (Joint joint)
 Prints human readable string for enum Joint More...
 
Pose PostureEstimating::createPose ()
 Creates an empty Pose object. More...
 

Macro Definition Documentation

◆ BAD_POSTURE_NOTIFICATION_TIME

#define BAD_POSTURE_NOTIFICATION_TIME   180000

3 minutes

◆ BAD_POSTURE_TIME

#define BAD_POSTURE_TIME   10000

10 seconds

◆ MAX_POSE_CHANGE_THRESHOLD

#define MAX_POSE_CHANGE_THRESHOLD   0.5

28.64 degrees

◆ MIN_POSE_CHANGE_THRESHOLD

#define MIN_POSE_CHANGE_THRESHOLD   0.0

0 degrees

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

◆ STOP_TIMER_TIME

#define STOP_TIMER_TIME   2000

2 seconds

◆ UNDEFINED_POSTURE_NOTIFICATION_TIME

#define UNDEFINED_POSTURE_NOTIFICATION_TIME   600000

10 minutes

◆ UNDEFINED_POSTURE_TIME

#define UNDEFINED_POSTURE_TIME   300000

5 minutes