Public Member Functions | Private Member Functions | Private Attributes | List of all members
AlbRequester Class Reference

Class to send requests to the ALB. More...

#include <alb_requester.h>

Public Member Functions

 AlbRequester (ros::NodeHandle &node)
 
bool init (void)
 Initialize the ALB requester. More...
 

Private Member Functions

void defineServices (ros::NodeHandle &node)
 Define the ALB services. More...
 
bool downloadFileCallback (outsight_alb_driver::AlbFile::Request &request, outsight_alb_driver::AlbFile::Response &response)
 Service callback to download a file from the ALB. More...
 
bool getConfigCallback (outsight_alb_driver::AlbConfig::Request &request, outsight_alb_driver::AlbConfig::Response &response)
 Service callback to get the ALB configuration. More...
 
bool listFilesCallback (outsight_alb_driver::AlbFile::Request &request, outsight_alb_driver::AlbFile::Response &response)
 Service callback to list files in the ALB. More...
 
bool putConfigCallback (outsight_alb_driver::AlbConfig::Request &request, outsight_alb_driver::AlbConfig::Response &response)
 Service callback to put the ALB configuration. More...
 
bool restartProcessingCallback (std_srvs::Trigger::Request &request, std_srvs::Trigger::Response &response)
 Service callback to start the processing. More...
 
bool stopProcessingCallback (std_srvs::Trigger::Request &request, std_srvs::Trigger::Response &response)
 Service callback to kill the processing. More...
 
bool uploadFileCallback (outsight_alb_driver::AlbFile::Request &request, outsight_alb_driver::AlbFile::Response &response)
 Service callback to upload a file to the ALB. More...
 

Private Attributes

std::string ip_address
 
ros::ServiceServer processing_service_get_config
 
ros::ServiceServer processing_service_put_config
 
ros::ServiceServer processing_service_restart
 
ros::ServiceServer processing_service_stop
 
ros::ServiceServer storage_service_download
 
ros::ServiceServer storage_service_list
 
ros::ServiceServer storage_service_upload
 

Detailed Description

Class to send requests to the ALB.

Definition at line 13 of file alb_requester.h.

Constructor & Destructor Documentation

◆ AlbRequester()

AlbRequester::AlbRequester ( ros::NodeHandle node)

Definition at line 6 of file alb_requester.cpp.

Member Function Documentation

◆ defineServices()

void AlbRequester::defineServices ( ros::NodeHandle node)
private

Define the ALB services.

Definition at line 28 of file alb_requester.cpp.

◆ downloadFileCallback()

bool AlbRequester::downloadFileCallback ( outsight_alb_driver::AlbFile::Request &  request,
outsight_alb_driver::AlbFile::Response &  response 
)
private

Service callback to download a file from the ALB.

Definition at line 141 of file alb_requester.cpp.

◆ getConfigCallback()

bool AlbRequester::getConfigCallback ( outsight_alb_driver::AlbConfig::Request &  request,
outsight_alb_driver::AlbConfig::Response &  response 
)
private

Service callback to get the ALB configuration.

Definition at line 107 of file alb_requester.cpp.

◆ init()

bool AlbRequester::init ( void  )

Initialize the ALB requester.

Returns
  • True if initialization is successful.
  • False on error.

Definition at line 11 of file alb_requester.cpp.

◆ listFilesCallback()

bool AlbRequester::listFilesCallback ( outsight_alb_driver::AlbFile::Request &  request,
outsight_alb_driver::AlbFile::Response &  response 
)
private

Service callback to list files in the ALB.

Definition at line 175 of file alb_requester.cpp.

◆ putConfigCallback()

bool AlbRequester::putConfigCallback ( outsight_alb_driver::AlbConfig::Request &  request,
outsight_alb_driver::AlbConfig::Response &  response 
)
private

Service callback to put the ALB configuration.

Definition at line 124 of file alb_requester.cpp.

◆ restartProcessingCallback()

bool AlbRequester::restartProcessingCallback ( std_srvs::Trigger::Request &  request,
std_srvs::Trigger::Response &  response 
)
private

Service callback to start the processing.

Definition at line 49 of file alb_requester.cpp.

◆ stopProcessingCallback()

bool AlbRequester::stopProcessingCallback ( std_srvs::Trigger::Request &  request,
std_srvs::Trigger::Response &  response 
)
private

Service callback to kill the processing.

Definition at line 78 of file alb_requester.cpp.

◆ uploadFileCallback()

bool AlbRequester::uploadFileCallback ( outsight_alb_driver::AlbFile::Request &  request,
outsight_alb_driver::AlbFile::Response &  response 
)
private

Service callback to upload a file to the ALB.

Definition at line 158 of file alb_requester.cpp.

Member Data Documentation

◆ ip_address

std::string AlbRequester::ip_address
private

Definition at line 54 of file alb_requester.h.

◆ processing_service_get_config

ros::ServiceServer AlbRequester::processing_service_get_config
private

Definition at line 58 of file alb_requester.h.

◆ processing_service_put_config

ros::ServiceServer AlbRequester::processing_service_put_config
private

Definition at line 59 of file alb_requester.h.

◆ processing_service_restart

ros::ServiceServer AlbRequester::processing_service_restart
private

Definition at line 56 of file alb_requester.h.

◆ processing_service_stop

ros::ServiceServer AlbRequester::processing_service_stop
private

Definition at line 57 of file alb_requester.h.

◆ storage_service_download

ros::ServiceServer AlbRequester::storage_service_download
private

Definition at line 61 of file alb_requester.h.

◆ storage_service_list

ros::ServiceServer AlbRequester::storage_service_list
private

Definition at line 63 of file alb_requester.h.

◆ storage_service_upload

ros::ServiceServer AlbRequester::storage_service_upload
private

Definition at line 62 of file alb_requester.h.


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


outsight_alb_driver
Author(s): Outsight
autogenerated on Fri Oct 14 2022 02:29:51