#include <FaceContourRequestHandler.h>
Classes | |
struct | ImageMaskPair |
struct | WorkerSetting |
Public Member Functions | |
FaceContourRequestHandler (ros::NodeHandle &node, std::string exploreConfigPath) | |
bool | HandleAlubscRequest (portrait_robot_msgs::alubsc_node_instr::Request &req, portrait_robot_msgs::alubsc_node_instr::Response &res) |
void | SolveOneRequest () |
Solves one request in the queue. | |
virtual | ~FaceContourRequestHandler () |
Private Member Functions | |
void | M_LoadExploreSettings (std::vector< WorkerSetting > &settings) |
void | M_SendStatusMessage (const std::string &message) |
Private Attributes | |
std::string | exploreConfigPath |
ros::NodeHandle & | node |
std::queue< ImageMaskPair > | requests |
Definition at line 15 of file FaceContourRequestHandler.h.
face_contour_detector::FaceContourRequestHandler::FaceContourRequestHandler | ( | ros::NodeHandle & | node, |
std::string | exploreConfigPath | ||
) |
Constructor
node | used to subscribe and call services |
exploreConfigPath | the path to the explore xml config file |
Definition at line 31 of file FaceContourRequestHandler.cpp.
Definition at line 35 of file FaceContourRequestHandler.cpp.
bool face_contour_detector::FaceContourRequestHandler::HandleAlubscRequest | ( | portrait_robot_msgs::alubsc_node_instr::Request & | req, |
portrait_robot_msgs::alubsc_node_instr::Response & | res | ||
) |
Callbacks for the alubsc_node_instr service
req | the incoming request |
res | the response (always returns true) |
TODO handle abourt request
let the brige convert the image if needed
Definition at line 226 of file FaceContourRequestHandler.cpp.
void face_contour_detector::FaceContourRequestHandler::M_LoadExploreSettings | ( | std::vector< WorkerSetting > & | settings | ) | [private] |
Loads the explore settings
settings | a list of workers with their number of target values |
Definition at line 297 of file FaceContourRequestHandler.cpp.
void face_contour_detector::FaceContourRequestHandler::M_SendStatusMessage | ( | const std::string & | message | ) | [private] |
Sends out status messages
message | the message being sent |
Definition at line 283 of file FaceContourRequestHandler.cpp.
Solves one request in the queue.
Definition at line 43 of file FaceContourRequestHandler.cpp.
std::string face_contour_detector::FaceContourRequestHandler::exploreConfigPath [private] |
Definition at line 56 of file FaceContourRequestHandler.h.
Definition at line 55 of file FaceContourRequestHandler.h.
std::queue<ImageMaskPair> face_contour_detector::FaceContourRequestHandler::requests [private] |
Definition at line 54 of file FaceContourRequestHandler.h.