A mock classify class to test the cba package. More...
#include <iostream>
#include <lfd_common/classification_point.h>
#include <lfd_common/conf_classification.h>
#include <ros/ros.h>
#include <time.h>
#include <vector>
Go to the source code of this file.
Functions | |
void | add_point_callback (const lfd_common::classification_point::ConstPtr &msg) |
void | change_point_callback (const lfd_common::classification_point::ConstPtr &msg) |
bool | classify_callback (lfd_common::conf_classification::Request &req, lfd_common::conf_classification::Response &resp) |
int | main (int argc, char **argv) |
Variables | |
vector< float * > | data |
A mock classify class to test the cba package.
mock_classify is a test classify class for the cba package.
Definition in file mock_classify.cpp.
void add_point_callback | ( | const lfd_common::classification_point::ConstPtr & | msg | ) |
Adds the point to this mock classifier.
msg | the point to add |
Definition at line 66 of file mock_classify.cpp.
void change_point_callback | ( | const lfd_common::classification_point::ConstPtr & | msg | ) |
Changes the given point in the classifier
msg | the point to change |
Definition at line 100 of file mock_classify.cpp.
bool classify_callback | ( | lfd_common::conf_classification::Request & | req, |
lfd_common::conf_classification::Response & | resp | ||
) |
Classifies the request with a pre-determined response.
req | the requested data point to classify |
resp | the response to the classify |
Definition at line 29 of file mock_classify.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Creates and runs the mock_classify node.
argc | argument count that is passed to ros::init |
argv | arguments that are passed to ros::init |
Definition at line 123 of file mock_classify.cpp.
vector<float*> data |
the data set
Definition at line 20 of file mock_classify.cpp.