Functions | Variables
mock_classify.cpp File Reference

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>
Include dependency graph for mock_classify.cpp:

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

Detailed Description

A mock classify class to test the cba package.

mock_classify is a test classify class for the cba package.

Author:
Russell Toris, WPI - rctoris@wpi.edu
Date:
November 22, 2011

Definition in file mock_classify.cpp.


Function Documentation

Adds the point to this mock classifier.

Parameters:
msgthe point to add

Definition at line 66 of file mock_classify.cpp.

Changes the given point in the classifier

Parameters:
msgthe point to change

Definition at line 100 of file mock_classify.cpp.

Classifies the request with a pre-determined response.

Parameters:
reqthe requested data point to classify
respthe response to the classify
Returns:
if the classify call was successful

Definition at line 29 of file mock_classify.cpp.

int main ( int  argc,
char **  argv 
)

Creates and runs the mock_classify node.

Parameters:
argcargument count that is passed to ros::init
argvarguments that are passed to ros::init
Returns:
EXIT_SUCCESS if the node runs correctly

Definition at line 123 of file mock_classify.cpp.


Variable Documentation

vector<float*> data

the data set

Definition at line 20 of file mock_classify.cpp.



cba
Author(s): Russell Toris
autogenerated on Thu Jan 2 2014 11:23:56