'no matching function for call to ‘ros::NodeHandle::advertiseService(const char [11], bool (Potential_four::*)(turtlebot3_gazebo::goal_srv::Request [closed]
goal_service_ =nh_.advertiseService("set_goalds",&Potential_four::SetGoal); bool Potential_four::SetGoal(turtlebot3_gazebo::goal_srv::Request &req,turtlebot3_gazebo::goal_srv::Response &res){ goal.x=req.x; goal.y=req.y; goal.z=req.z; res.v=0; return true; }
This is not a question, but a straight dump of an error and some code.
Please provide more context and tell us what you are trying to do.
I've closed it for now. Use the
edit
button/link to fix your question, then we can re-open.