Functions | Variables
lmc_filter_node.cpp File Reference
#include "ros/ros.h"
#include "leap_motion/Human.h"
#include "leap_motion/Hand.h"
#include "leap_motion/Finger.h"
#include "leap_motion/Bone.h"
#include <iostream>
#include "Leap.h"
#include "../inc/lmc_filter_node.h"
Include dependency graph for lmc_filter_node.cpp:

Go to the source code of this file.

Functions

void filterMessage (leap_motion::Hand hand, uint8_t hand_idx)
 This is used to filter the unfiltered human.msg.
int main (int argc, char **argv)
void messageCallback (const leap_motion::Human::ConstPtr &human)
 A callback function that is run everytime a new Human.msg is received.

Variables

static ros::Publisherfilt_pub
std::vector< std::vector< lpf > > hands
bool set_up_left = true
bool set_up_right = true

Function Documentation

void filterMessage ( leap_motion::Hand  hand,
uint8_t  hand_idx 
)

This is used to filter the unfiltered human.msg.

It receives the unfiltered Human.msg, filters every coordinate value and forwards it under the topic "filtered_values".

Parameters:
handAn instance of leap_motion::Hand to be filtered
hand_idxUsed to access the values of the bone using that index.

Definition at line 116 of file lmc_filter_node.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 204 of file lmc_filter_node.cpp.

void messageCallback ( const leap_motion::Human::ConstPtr &  human)

A callback function that is run everytime a new Human.msg is received.

It receives the unfiltered Human.msg, filters every coordinate value and forwards it under the topic "filtered_values".

Parameters:
humanA pointer to the received human.msg

Definition at line 185 of file lmc_filter_node.cpp.


Variable Documentation

Definition at line 11 of file lmc_filter_node.cpp.

std::vector< std::vector<lpf> > hands

Definition at line 13 of file lmc_filter_node.cpp.

bool set_up_left = true

Definition at line 15 of file lmc_filter_node.cpp.

bool set_up_right = true

Definition at line 14 of file lmc_filter_node.cpp.



leap_motion
Author(s): Florian Lier , Mirza Shah , Isaac IY Saito
autogenerated on Sat Jun 8 2019 18:47:25