'no matching function for call to ‘ros::NodeHandle::advertiseService(const char [11], bool (Potential_four::*)(turtlebot3_gazebo::goal_srv::Request
goalservice =nh.advertiseService("setgoalds",&Potentialfour::SetGoal); bool Potentialfour::SetGoal(turtlebot3gazebo::goalsrv::Request &req,turtlebot3gazebo::goalsrv::Response &res){ goal.x=req.x; goal.y=req.y; goal.z=req.z; res.v=0; return true; }
Asked by czldz on 2019-06-24 00:40:48 UTC
Comments
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.Asked by gvdhoorn on 2019-06-24 02:06:59 UTC