alb_requester.h
Go to the documentation of this file.
1 #ifndef _ALB_REQUESTER_H
2 #define _ALB_REQUESTER_H
3 
4 // ROS headers
5 #include "ros/ros.h"
6 #include "std_srvs/Trigger.h"
7 
8 // Local headers
9 #include "outsight_alb_driver/AlbConfig.h"
10 #include "outsight_alb_driver/AlbFile.h"
11 
13 class AlbRequester {
14  public:
16 
21  bool init(void);
22 
23  private:
25  void defineServices(ros::NodeHandle &node);
26 
28  bool restartProcessingCallback(std_srvs::Trigger::Request &request, std_srvs::Trigger::Response &response);
29 
31  bool stopProcessingCallback(std_srvs::Trigger::Request &request, std_srvs::Trigger::Response &response);
32 
34  bool getConfigCallback(outsight_alb_driver::AlbConfig::Request &request,
35  outsight_alb_driver::AlbConfig::Response &response);
36 
38  bool putConfigCallback(outsight_alb_driver::AlbConfig::Request &request,
39  outsight_alb_driver::AlbConfig::Response &response);
40 
42  bool downloadFileCallback(outsight_alb_driver::AlbFile::Request &request,
43  outsight_alb_driver::AlbFile::Response &response);
44 
46  bool uploadFileCallback(outsight_alb_driver::AlbFile::Request &request,
47  outsight_alb_driver::AlbFile::Response &response);
48 
50  bool listFilesCallback(outsight_alb_driver::AlbFile::Request &request,
51  outsight_alb_driver::AlbFile::Response &response);
52 
53  private:
54  std::string ip_address;
55 
60 
64 };
65 
66 #endif // _ALB_REQUESTER_H
response
const std::string response
AlbRequester::storage_service_upload
ros::ServiceServer storage_service_upload
Definition: alb_requester.h:62
AlbRequester
Class to send requests to the ALB.
Definition: alb_requester.h:13
ros.h
AlbRequester::processing_service_restart
ros::ServiceServer processing_service_restart
Definition: alb_requester.h:56
AlbRequester::listFilesCallback
bool listFilesCallback(outsight_alb_driver::AlbFile::Request &request, outsight_alb_driver::AlbFile::Response &response)
Service callback to list files in the ALB.
Definition: alb_requester.cpp:175
ros::ServiceServer
AlbRequester::stopProcessingCallback
bool stopProcessingCallback(std_srvs::Trigger::Request &request, std_srvs::Trigger::Response &response)
Service callback to kill the processing.
Definition: alb_requester.cpp:78
AlbRequester::defineServices
void defineServices(ros::NodeHandle &node)
Define the ALB services.
Definition: alb_requester.cpp:28
AlbRequester::putConfigCallback
bool putConfigCallback(outsight_alb_driver::AlbConfig::Request &request, outsight_alb_driver::AlbConfig::Response &response)
Service callback to put the ALB configuration.
Definition: alb_requester.cpp:124
AlbRequester::AlbRequester
AlbRequester(ros::NodeHandle &node)
Definition: alb_requester.cpp:6
AlbRequester::restartProcessingCallback
bool restartProcessingCallback(std_srvs::Trigger::Request &request, std_srvs::Trigger::Response &response)
Service callback to start the processing.
Definition: alb_requester.cpp:49
AlbRequester::getConfigCallback
bool getConfigCallback(outsight_alb_driver::AlbConfig::Request &request, outsight_alb_driver::AlbConfig::Response &response)
Service callback to get the ALB configuration.
Definition: alb_requester.cpp:107
AlbRequester::ip_address
std::string ip_address
Definition: alb_requester.h:54
AlbRequester::storage_service_download
ros::ServiceServer storage_service_download
Definition: alb_requester.h:61
AlbRequester::storage_service_list
ros::ServiceServer storage_service_list
Definition: alb_requester.h:63
AlbRequester::init
bool init(void)
Initialize the ALB requester.
Definition: alb_requester.cpp:11
AlbRequester::uploadFileCallback
bool uploadFileCallback(outsight_alb_driver::AlbFile::Request &request, outsight_alb_driver::AlbFile::Response &response)
Service callback to upload a file to the ALB.
Definition: alb_requester.cpp:158
AlbRequester::processing_service_stop
ros::ServiceServer processing_service_stop
Definition: alb_requester.h:57
AlbRequester::downloadFileCallback
bool downloadFileCallback(outsight_alb_driver::AlbFile::Request &request, outsight_alb_driver::AlbFile::Response &response)
Service callback to download a file from the ALB.
Definition: alb_requester.cpp:141
AlbRequester::processing_service_get_config
ros::ServiceServer processing_service_get_config
Definition: alb_requester.h:58
ros::NodeHandle
AlbRequester::processing_service_put_config
ros::ServiceServer processing_service_put_config
Definition: alb_requester.h:59


outsight_alb_driver
Author(s): Outsight
autogenerated on Thu Oct 13 2022 02:21:45