assistive-rehab
Data Structures | Functions
skeleton

Classes for skeleton. More...

Data Structures

class  assistive_rehab::Skeleton
 Abstract class for skeleton. More...
 
class  assistive_rehab::SkeletonStd
 Basic class for skeleton standard. More...
 

Functions

Skeletonassistive_rehab::skeleton_factory (const yarp::os::Property &prop)
 Populate skeleton from a Property object. More...
 

Detailed Description

Classes for skeleton.

Description

The class Skeleton can be used to deal with skeletons, defined as series of keypoints linked together with a predefined structure. The class Keypoint can be used to deal with single keypoints of the skeleton.

A skeleton can be defined from:

Author
Ugo Pattacini ugo.p.nosp@m.atta.nosp@m.cini@.nosp@m.iit..nosp@m.it

Function Documentation

◆ skeleton_factory()

Skeleton* assistive_rehab::skeleton_factory ( const yarp::os::Property &  prop)

Populate skeleton from a Property object.

Parameters
propreference to a Property object.
Returns
a pointer to a Skeleton object.

Available properties are:

  • type: string containing skeleton's type ("assistive_rehab::SkeletonStd").
  • tag: string containing skeleton's tag.
  • transformation: 4 x 4 skeleton's roto-translation matrix.
  • coronal: vector containing skeleton's coronal plane.
  • sagittal: vector containing skeleton's sagittal plane.
  • transverse: vector containing skeleton's transverse plane.
  • skeleton: list containing keypoints with the following subproperties:
    • tag: string containing keypoint's tag.
    • status: string containing keypoint's status (updated or stale).
    • position: vector containing keypoint's camera coordinates x,y,z.
    • pixel: vector containing keypoint's image coordinates u,v.
    • child: list containing keypoint's child, specified as position, status, tag.