I want to call a service in code. The command line form is "rosservice call /move_base_node/clear_costmaps".
It has type std_srvs/Empty
There is function ros::service::call(const std::string &service_name, Service &service ) (documentation can be found here)
I am unsure what to put in the Service arg field
ros::service::call("/move_base_node/clear_costmaps", ??)
Originally posted by bevilllmen23 on ROS Answers with karma: 3 on 2020-08-05
Post score: 0