3 #include "nav_msgs/GetMap.h" 7 int main(
int argc,
char **argv)
17 std::string laserTopic;
18 n.
param(
"laser_topic", laserTopic, std::string(
"scan"));
22 std::string mapService;
23 n.
param(
"map_service", mapService, std::string(
"get_map"));
28 if(mapClient.
call(srv))
ServiceClient serviceClient(const std::string &service_name, bool persistent=false, const M_string &header_values=M_string())
void process(const sensor_msgs::LaserScan::ConstPtr &scan)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool call(MReq &req, MRes &res)
tf::StampedTransform getMapToOdometry()
int main(int argc, char **argv)
void convertMap(const nav_msgs::OccupancyGrid &map_msg)
bool waitForExistence(ros::Duration timeout=ros::Duration(-1))
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
ROSCPP_DECL void spinOnce()