PosturePerfection
Data Structures | Namespaces | Enumerations | Functions
posture_estimator.h File Reference

Interface for representation of user's pose. More...

#include <CppTimer.h>
#include <RemoteNotifyBroadcast.h>
#include <stdio.h>
#include <string>
#include <vector>
#include "intermediate_structures.h"
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
Include dependency graph for posture_estimator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PostureEstimating::ConnectedJoint
 A representation of a body part. More...
 
struct  PostureEstimating::Pose
 The representation of a human's pose, containing all the expected ConnectedJoint More...
 
struct  PostureEstimating::PoseStatus
 Representation of user's pose for use by the pipeline processing. More...
 
class  PostureEstimating::DelayTimer
 Simple timer which just has the running flag set when running and unset when not running. More...
 
class  PostureEstimating::MessageTimer
 Broadcasts a message using RemoteNotify::Broadcast after a time is elapsed. More...
 
class  PostureEstimating::StopTimer
 Timer which countdowns and stops a PostureEstimating::MessageTimer if countdown ends. More...
 
class  PostureEstimating::PostureEstimator
 This class handles representations of the user's pose and calculates any updates to their pose that is required. More...
 

Namespaces

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

Enumerations

enum  PostureEstimating::PostureState {
  PostureEstimating::Good , PostureEstimating::Bad , PostureEstimating::Unset , PostureEstimating::Undefined ,
  PostureEstimating::UndefinedAndUnset
}
 Potential states which the posture can be. Unset means that the ideal_pose has not been set by the user. Undefined means that pose estimation has failed to confidently identify a full posture. More...
 
enum  PostureEstimating::Colours { PostureEstimating::Red , PostureEstimating::Green , PostureEstimating::Blue , PostureEstimating::Grey }
 Colours corresponding to PostureEstimator::colours 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...
 

Detailed Description

Interface for representation of user's pose.

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/.