Class handPoseEstimationModule. More...
#include <handPoseEstimationModule.h>
Public Member Functions | |
virtual bool | configure (yarp::os::ResourceFinder &rf) |
virtual bool | interruptModule () |
virtual bool | close () |
virtual bool | updateModule () |
virtual double | getPeriod () |
bool | attach (yarp::os::RpcServer &source) |
bool | start () |
Start (re-start) the hand pose estimation. More... | |
bool | stop () |
Stop the hand pose estimation. More... | |
bool | pause () |
Pause the hand pose estimation. More... | |
bool | resume () |
Resume the hand pose estimation. More... | |
yarp::os::Bottle | lastOffsets () |
Ask for the last estimated angular Offsets on the arm (7DoF) More... | |
bool | quit () |
Quit the module. More... | |
virtual bool | read (yarp::os::ConnectionReader &connection) YARP_OVERRIDE |
virtual std::vector< std::string > | help (const std::string &functionName="--all") |
Protected Member Functions | |
cv::Mat | processImages (cv::Mat inputImage) |
The function applies a canny edge detector and a distance transform. More... | |
bool | initializeSMCVariables () |
Initialize the variables structs needed for the SMC to run. More... | |
bool | initSMC () |
Initialize the variables values for the SMC. More... | |
bool | runSMCIteration () |
Run one iteration of the Sequential Monte Carlo Parameters estimation. More... | |
void | mergeAndFlipImages () |
merge the left and right images. More... | |
void | kernelDensityEstimation () |
Perform the Kernel Density estimation with a multivariate gaussian kernel. | |
bool | readArmJoints () |
Read the arm joints. More... | |
bool | readHeadJoints () |
Read the head joints. More... | |
bool | systematic_resampling (CvMat *oldParticlesState, CvMat *oldParticlesWeights, CvMat *newParticlesState, CvMat *cumWeight, float sum2) |
perform the systematic resampling step of the SMC algorithm More... | |
Class handPoseEstimationModule.
Definition at line 53 of file handPoseEstimationModule.h.
|
protected |
Initialize the variables structs needed for the SMC to run.
Definition at line 92 of file handPoseEstimationModule.cpp.
|
protected |
Initialize the variables values for the SMC.
Definition at line 142 of file handPoseEstimationModule.cpp.
|
virtual |
Ask for the last estimated angular Offsets on the arm (7DoF)
Reimplemented from handPoseEstimation_IDL.
Definition at line 675 of file handPoseEstimationModule.cpp.
|
protected |
merge the left and right images.
i.e., concatenate horizontally.
Definition at line 402 of file handPoseEstimationModule.cpp.
|
virtual |
Pause the hand pose estimation.
The filter stop the generation of particles and waits for a resume command
Reimplemented from handPoseEstimation_IDL.
Definition at line 661 of file handPoseEstimationModule.cpp.
|
protected |
The function applies a canny edge detector and a distance transform.
Definition at line 552 of file handPoseEstimationModule.cpp.
|
virtual |
Quit the module.
Reimplemented from handPoseEstimation_IDL.
Definition at line 683 of file handPoseEstimationModule.cpp.
|
protected |
Read the arm joints.
Definition at line 568 of file handPoseEstimationModule.cpp.
|
protected |
Read the head joints.
Definition at line 587 of file handPoseEstimationModule.cpp.
|
virtual |
Resume the hand pose estimation.
The filter resumes the generation of particles after a pause command
Reimplemented from handPoseEstimation_IDL.
Definition at line 668 of file handPoseEstimationModule.cpp.
|
protected |
Run one iteration of the Sequential Monte Carlo Parameters estimation.
Definition at line 173 of file handPoseEstimationModule.cpp.
|
virtual |
Start (re-start) the hand pose estimation.
The filter generates particles and update the particle distribution accordingly
Reimplemented from handPoseEstimation_IDL.
Definition at line 644 of file handPoseEstimationModule.cpp.
|
virtual |
Stop the hand pose estimation.
The filter stop the generation of particles and waits for a start command
Reimplemented from handPoseEstimation_IDL.
Definition at line 653 of file handPoseEstimationModule.cpp.
|
protected |
perform the systematic resampling step of the SMC algorithm
Definition at line 329 of file handPoseEstimationModule.cpp.