#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"
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::Publisher * | filt_pub |
std::vector< std::vector< lpf > > | hands |
bool | set_up_left = true |
bool | set_up_right = true |
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".
hand | An instance of leap_motion::Hand to be filtered |
hand_idx | Used 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".
human | A pointer to the received human.msg |
Definition at line 185 of file lmc_filter_node.cpp.
ros::Publisher* filt_pub [static] |
Definition at line 11 of file lmc_filter_node.cpp.
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.