List of all members.
Detailed Description
template<class observation_type>
class skeleton_state< observation_type >
The most basic class for representing the state of the tracker, i.e. to represent the skeleton. Other states inherit from this one.
Constructor & Destructor Documentation
template<class observation_type>
- Parameters:
-
[in] | opts | Options for controlling the run-time behaviour. |
[in] | calib | Calibration of the different world coordinate systems. |
[in] | _for_show | Should the state be used for visualisation or not? States that are visualised have further computational demands. |
Member Function Documentation
template<class observation_type>
- Returns:
- An iterator for the first bone in the skeleton.
template<class observation_type>
- Returns:
- A const iterator for the first bone in the skeleton.
template<class observation_type>
- Returns:
- An iterator for the last bone in the skeleton.
template<class observation_type>
- Returns:
- A const iterator for the last bone in the skeleton.
template<class observation_type>
Wrap an ellipsoid arround a given bone. This is used for skinning.
- Parameters:
-
[in] | bone | The bone to be used. |
[out] | ellipsoid. | The resulting ellipsoid. |
- Returns:
- TRUE on succes; FALSE otherwise.
template<class observation_type>
Perform forward kinematics.
template<class observation_type>
size_t skeleton_state< observation_type >::count_num_end_effectors |
( |
|
) |
const [inline] |
- Returns:
- Number of bones marked as end-effectors.
template<class observation_type>
double skeleton_state< observation_type >::get_max_limit |
( |
unsigned int |
idx |
) |
const [inline] |
Get a specific upper joint limit.
- Parameters:
-
[in] | idx | The index of the specific joint angle. |
- Returns:
- The specific upper joint limit.
template<class observation_type>
- Returns:
- A reference to the mesh used for representing the skin.
template<class observation_type>
double skeleton_state< observation_type >::get_min_limit |
( |
unsigned int |
idx |
) |
const [inline] |
Get a specific lower joint limit.
- Parameters:
-
[in] | idx | The index of the specific joint angle. |
- Returns:
- The specific lower joint limit.
template<class observation_type>
- Returns:
- The 3D coordinate of the root of the skeleton.
template<class observation_type>
- Returns:
- A reference to the skeleton.
template<class observation_type>
- Returns:
- A reference to the skeleton.
template<class observation_type>
- Returns:
- A reference to the IK solver.
template<class observation_type>
Get current joint angles.
- Returns:
- A reference to a vector of joint angles.
template<class observation_type>
Get current joint angles.
- Returns:
- A vector of joint angles.
template<class observation_type>
double skeleton_state< observation_type >::get_theta |
( |
const int |
idx |
) |
const [inline] |
Get a specific joint angle.
- Parameters:
-
[in] | idx | The index of the specific joint angle. |
- Returns:
- The angle value.
template<class observation_type>
bool skeleton_state< observation_type >::load |
( |
std::ifstream & |
file |
) |
[inline] |
Load pose parameters from a stream. This is useful for batch loads.
- Parameters:
-
[in] | file | A stream representing the open file. |
- Returns:
- TRUE on succes.
Reimplemented in angle_bgsub_state< observation_type >, angle_state< observation_type >, bgsub_state< observation_type >, brownian_state< observation_type >, brownian_stick_state< observation_type >, hull_state< observation_type >, pik_state< observation_type >, pik_stick_state< observation_type >, projection_state< observation_type >, stick2d_state< observation_type >, stick_state< observation_type >, tangent_state< observation_type >, angle_state< point_cloud_and_stick >, projection_state< point_cloud_and_stick >, and stick_state< point_cloud_and_stick >.
template<class observation_type>
Load pose parameters from a file.
- Parameters:
-
[in] | filename | The name of the file containing the pose paramters. |
- Returns:
- TRUE on succes.
Reimplemented in angle_bgsub_state< observation_type >, angle_state< observation_type >, bgsub_state< observation_type >, brownian_state< observation_type >, brownian_stick_state< observation_type >, hull_state< observation_type >, pik_state< observation_type >, pik_stick_state< observation_type >, projection_state< observation_type >, stick2d_state< observation_type >, stick_state< observation_type >, tangent_state< observation_type >, angle_state< point_cloud_and_stick >, projection_state< point_cloud_and_stick >, and stick_state< point_cloud_and_stick >.
template<class observation_type>
void skeleton_state< observation_type >::make_every_bone_an_end_effector |
( |
|
) |
[inline] |
Mark all bones as end-effectors for the IK solver. This is used by the manifold-valued approaches to tracking.
template<class observation_type>
Copy a skeleton to another.
template<class observation_type>
Initialise mesh for representing the skin.
template<class observation_type>
Enforce joint constraints.
template<class observation_type>
Write the pose parameters to a file.
- Parameters:
-
[in] | filename | The name of the output file. |
Implements state< observation_type >.
template<class observation_type>
void skeleton_state< observation_type >::save |
( |
std::ofstream & |
file |
) |
const [inline, virtual] |
Write the pose parameters to a stream. This is useful for batch saves.
- Parameters:
-
[in] | file | A stream representing the open file. |
Implements state< observation_type >.
template<class observation_type>
Set new root position.
- Parameters:
-
[in] | new_root | The new position of the skeleton root. |
template<class observation_type>
Set current joint angles. This function does not recompute joint positions.
- Parameters:
-
[in] | new_theta | A vector of new joint angles. |
template<class observation_type>
void skeleton_state< observation_type >::set_theta |
( |
const int |
idx, |
|
|
const double |
val | |
|
) |
| | [inline] |
Set a specific joint angle to a given value.
- Parameters:
-
[in] | idx | The index of the specific joint angle. |
[in] | val | The new value of the joint angle. |
template<class observation_type>
void skeleton_state< observation_type >::show |
( |
const double |
gray_level = 0.25 |
) |
const [inline, virtual] |
Draw the skeleton in 3D.
- Parameters:
-
[in] | gray_level | The gray scale color of the skeleton (should be between 0 and 1). |
Implements state< observation_type >.
template<class observation_type>
- Returns:
- The number of joint angles in the skeleton.
Member Data Documentation
template<class observation_type>
template<class observation_type>
template<class observation_type>
template<class observation_type>
template<class observation_type>
template<class observation_type>
template<class observation_type>
template<class observation_type>
template<class observation_type>
template<class observation_type>
template<class observation_type>
template<class observation_type>
template<class observation_type>
The documentation for this class was generated from the following file: