ros1中的server服务的创建与使用函数指针类型别名请求处理函数
法一:
#include "ros/ros.h"
//自定义消息
#include "trilateration/trilateration_srvs.h"
void handleDeletePosint(const trilateration::trilateration_srvs::Request& req, trilateration::trilateration_srvs::Response& re) {
std::cout << "Key " << req.posint_id.x << " and its associated value have been removed.\n";
re.result="ok";
re.success=true;
}
void handlePrintReflectorPanelPoints_vector(const trilateration::trilateration_srvs::Request& req, trilateration::trilateration_srvs::Response& re) {
re.resultTxt = "function is empty" ;
re.result="ok";
re.success=