3 #include <nav2d_navigator/GetFirstMapAction.h> 4 #include <std_srvs/Trigger.h> 12 bool receiveCommand(std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res)
14 nav2d_navigator::GetFirstMapGoal goal;
17 res.message =
"Send GetFirstMapGoal to Navigator.";
21 int main(
int argc,
char **argv)
bool waitForServer(const ros::Duration &timeout=ros::Duration(0, 0)) const
actionlib::SimpleActionClient< nav2d_navigator::GetFirstMapAction > GetMapClient
GetMapClient * gGetMapClient
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ServiceServer advertiseService(const std::string &service, bool(T::*srv_func)(MReq &, MRes &), T *obj)
int main(int argc, char **argv)
#define NAV_GETMAP_ACTION
bool receiveCommand(std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res)
void sendGoal(const Goal &goal, SimpleDoneCallback done_cb=SimpleDoneCallback(), SimpleActiveCallback active_cb=SimpleActiveCallback(), SimpleFeedbackCallback feedback_cb=SimpleFeedbackCallback())
#define NAV_GETMAP_SERVICE