27 ROS_ERROR(
"Qr detection topic param does not exist");
41 rapp_platform_ros_communications::QrDetectionRosSrv::Request& req,
42 rapp_platform_ros_communications::QrDetectionRosSrv::Response& res)
44 std::vector<QrCode> qrs;
47 for(
unsigned int i = 0 ; i < qrs.size() ; i++)
49 geometry_msgs::PointStamped qr_center;
51 qr_center.point.x = qrs[i].center.x;
52 qr_center.point.y = qrs[i].center.y;
54 res.qr_messages.push_back(qrs[i].message);
55 res.qr_centers.push_back(qr_center);
std::string qrDetectionTopic_
ros::ServiceServer qrDetectionService_
QrDetection(void)
Default constructor.
bool qrDetectionCallback(rapp_platform_ros_communications::QrDetectionRosSrv::Request &req, rapp_platform_ros_communications::QrDetectionRosSrv::Response &res)
The qr detection ROS service callback.
std::vector< QrCode > findQrs(std::string file_name)
Detects QRs in an image file.