Public Member Functions | Private Member Functions | Private Attributes | List of all members
ClassifierServer Class Reference
Inheritance diagram for ClassifierServer:
Inheritance graph
[legend]

Public Member Functions

 ClassifierServer ()
 

Private Member Functions

void addCallback (const std::shared_ptr< rmw_request_id_t > req_hdr, const std::shared_ptr< ml_classifiers::srv::AddClassData::Request > req, std::shared_ptr< ml_classifiers::srv::AddClassData::Response > res)
 
void classifyCallback (const std::shared_ptr< rmw_request_id_t > req_hdr, const std::shared_ptr< ml_classifiers::srv::ClassifyData::Request > req, std::shared_ptr< ml_classifiers::srv::ClassifyData::Response > res)
 
void clearCallback (const std::shared_ptr< rmw_request_id_t > req_hdr, const std::shared_ptr< ml_classifiers::srv::ClearClassifier::Request > req, std::shared_ptr< ml_classifiers::srv::ClearClassifier::Response > res)
 
void createCallback (const std::shared_ptr< rmw_request_id_t > req_hdr, const std::shared_ptr< ml_classifiers::srv::CreateClassifier::Request > req, std::shared_ptr< ml_classifiers::srv::CreateClassifier::Response > res)
 
bool createHelper (string class_type, std::shared_ptr< Classifier > &c)
 
void loadCallback (const std::shared_ptr< rmw_request_id_t > req_hdr, const std::shared_ptr< ml_classifiers::srv::LoadClassifier::Request > req, std::shared_ptr< ml_classifiers::srv::LoadClassifier::Response > res)
 
void saveCallback (const std::shared_ptr< rmw_request_id_t > req_hdr, const std::shared_ptr< ml_classifiers::srv::SaveClassifier::Request > req, std::shared_ptr< ml_classifiers::srv::SaveClassifier::Response > res)
 
void trainCallback (const std::shared_ptr< rmw_request_id_t > req_hdr, const std::shared_ptr< ml_classifiers::srv::TrainClassifier::Request > req, std::shared_ptr< ml_classifiers::srv::TrainClassifier::Response > res)
 

Private Attributes

rclcpp::Service< ml_classifiers::srv::AddClassData >::SharedPtr add_srv
 
pluginlib::ClassLoader< Classifierc_loader
 
std::map< string, std::shared_ptr< Classifier > > classifier_list
 
rclcpp::Service< ml_classifiers::srv::ClassifyData >::SharedPtr classify_srv
 
rclcpp::Service< ml_classifiers::srv::ClearClassifier >::SharedPtr clear_srv
 
rclcpp::Service< ml_classifiers::srv::CreateClassifier >::SharedPtr create_srv
 
rclcpp::Service< ml_classifiers::srv::LoadClassifier >::SharedPtr load_srv
 
rclcpp::Service< ml_classifiers::srv::SaveClassifier >::SharedPtr save_srv
 
rclcpp::Service< ml_classifiers::srv::TrainClassifier >::SharedPtr train_srv
 

Detailed Description

Definition at line 59 of file ros2_classifier_server.cpp.

Constructor & Destructor Documentation

ClassifierServer::ClassifierServer ( )
inline

Definition at line 62 of file ros2_classifier_server.cpp.

Member Function Documentation

void ClassifierServer::addCallback ( const std::shared_ptr< rmw_request_id_t >  req_hdr,
const std::shared_ptr< ml_classifiers::srv::AddClassData::Request >  req,
std::shared_ptr< ml_classifiers::srv::AddClassData::Response >  res 
)
inlineprivate

Definition at line 144 of file ros2_classifier_server.cpp.

void ClassifierServer::classifyCallback ( const std::shared_ptr< rmw_request_id_t >  req_hdr,
const std::shared_ptr< ml_classifiers::srv::ClassifyData::Request >  req,
std::shared_ptr< ml_classifiers::srv::ClassifyData::Response >  res 
)
inlineprivate

Definition at line 246 of file ros2_classifier_server.cpp.

void ClassifierServer::clearCallback ( const std::shared_ptr< rmw_request_id_t >  req_hdr,
const std::shared_ptr< ml_classifiers::srv::ClearClassifier::Request >  req,
std::shared_ptr< ml_classifiers::srv::ClearClassifier::Response >  res 
)
inlineprivate

Definition at line 184 of file ros2_classifier_server.cpp.

void ClassifierServer::createCallback ( const std::shared_ptr< rmw_request_id_t >  req_hdr,
const std::shared_ptr< ml_classifiers::srv::CreateClassifier::Request >  req,
std::shared_ptr< ml_classifiers::srv::CreateClassifier::Response >  res 
)
inlineprivate

Definition at line 118 of file ros2_classifier_server.cpp.

bool ClassifierServer::createHelper ( string  class_type,
std::shared_ptr< Classifier > &  c 
)
inlineprivate

Definition at line 103 of file ros2_classifier_server.cpp.

void ClassifierServer::loadCallback ( const std::shared_ptr< rmw_request_id_t >  req_hdr,
const std::shared_ptr< ml_classifiers::srv::LoadClassifier::Request >  req,
std::shared_ptr< ml_classifiers::srv::LoadClassifier::Response >  res 
)
inlineprivate

Definition at line 216 of file ros2_classifier_server.cpp.

void ClassifierServer::saveCallback ( const std::shared_ptr< rmw_request_id_t >  req_hdr,
const std::shared_ptr< ml_classifiers::srv::SaveClassifier::Request >  req,
std::shared_ptr< ml_classifiers::srv::SaveClassifier::Response >  res 
)
inlineprivate

Definition at line 200 of file ros2_classifier_server.cpp.

void ClassifierServer::trainCallback ( const std::shared_ptr< rmw_request_id_t >  req_hdr,
const std::shared_ptr< ml_classifiers::srv::TrainClassifier::Request >  req,
std::shared_ptr< ml_classifiers::srv::TrainClassifier::Response >  res 
)
inlineprivate

Definition at line 163 of file ros2_classifier_server.cpp.

Member Data Documentation

rclcpp::Service<ml_classifiers::srv::AddClassData>::SharedPtr ClassifierServer::add_srv
private

Definition at line 96 of file ros2_classifier_server.cpp.

pluginlib::ClassLoader<Classifier> ClassifierServer::c_loader
private

Definition at line 92 of file ros2_classifier_server.cpp.

std::map<string, std::shared_ptr<Classifier> > ClassifierServer::classifier_list
private

Definition at line 93 of file ros2_classifier_server.cpp.

rclcpp::Service<ml_classifiers::srv::ClassifyData>::SharedPtr ClassifierServer::classify_srv
private

Definition at line 101 of file ros2_classifier_server.cpp.

rclcpp::Service<ml_classifiers::srv::ClearClassifier>::SharedPtr ClassifierServer::clear_srv
private

Definition at line 98 of file ros2_classifier_server.cpp.

rclcpp::Service<ml_classifiers::srv::CreateClassifier>::SharedPtr ClassifierServer::create_srv
private

Definition at line 95 of file ros2_classifier_server.cpp.

rclcpp::Service<ml_classifiers::srv::LoadClassifier>::SharedPtr ClassifierServer::load_srv
private

Definition at line 100 of file ros2_classifier_server.cpp.

rclcpp::Service<ml_classifiers::srv::SaveClassifier>::SharedPtr ClassifierServer::save_srv
private

Definition at line 99 of file ros2_classifier_server.cpp.

rclcpp::Service<ml_classifiers::srv::TrainClassifier>::SharedPtr ClassifierServer::train_srv
private

Definition at line 97 of file ros2_classifier_server.cpp.


The documentation for this class was generated from the following file:


ml_classifiers
Author(s): Scott Niekum , Joshua Whitley
autogenerated on Sun Dec 15 2019 03:53:50