Public Member Functions | Protected Member Functions | Protected Attributes

mocap_data< observation_type > Class Template Reference

#include <mocap_data.h>

Inheritance diagram for mocap_data< observation_type >:
cloud< point_vector > observation< point_vector >

List of all members.

Public Member Functions

 mocap_data (const options &opts, const calibration &_calib)
 ~mocap_data ()
bool refresh (bool goto_next=true)
size_t size () const
void show () const
double average_pose_dist (const skeleton_state< observation_type > &pose)

Protected Member Functions

void read_data (const std::string filename)
double point_skin_dist (const skeleton_type &skeleton, const vector3 &x0)

Protected Attributes

std::list< point_vector * > all_points
std::list< point_vector * >
::iterator 
curr_frame_iter

Detailed Description

template<class observation_type>
class mocap_data< observation_type >

A simple class for markers from MOCAP system. This is used for validation purposes.


Constructor & Destructor Documentation

template<class observation_type>
mocap_data< observation_type >::mocap_data ( const options opts,
const calibration _calib 
) [inline]
template<class observation_type>
mocap_data< observation_type >::~mocap_data (  )  [inline]

Member Function Documentation

template<class observation_type>
double mocap_data< observation_type >::average_pose_dist ( const skeleton_state< observation_type > &  pose  )  [inline]
template<class observation_type>
double mocap_data< observation_type >::point_skin_dist ( const skeleton_type skeleton,
const vector3 x0 
) [inline, protected]
template<class observation_type>
void mocap_data< observation_type >::read_data ( const std::string  filename  )  [inline, protected]
template<class observation_type>
bool mocap_data< observation_type >::refresh ( bool  goto_next = true  )  [inline, virtual]

Reads data from the next frame. This function should be implemented by a class inheriting from the cloud class.

Parameters:
[in] goto_next This optional parameter determines if the next frame should be read (default) or the current frame should be re-read. The latter is useful if you have changed parameters of the point_cloud object, such as the translation or rotation of the data.
Returns:
If the frame was succesfully read the function returns true, otherwise it returns false.

Implements cloud< point_vector >.

template<class observation_type>
void mocap_data< observation_type >::show (  )  const [inline, virtual]

Draw the data currently held in the object. This function must be implemented by a class inheriting from cloud.

Implements cloud< point_vector >.

template<class observation_type>
size_t mocap_data< observation_type >::size (  )  const [inline, virtual]
Returns:
Returns the number of observation elements in the currently held frame.

Implements cloud< point_vector >.


Member Data Documentation

template<class observation_type>
std::list< point_vector* > mocap_data< observation_type >::all_points [protected]
template<class observation_type>
std::list< point_vector* >::iterator mocap_data< observation_type >::curr_frame_iter [protected]

The documentation for this class was generated from the following file: