From 43832f5012f367f6d3ce2a8276daccdf3474ca5a Mon Sep 17 00:00:00 2001 From: Nikos Koukis Date: Wed, 26 May 2021 22:44:46 +0300 Subject: [PATCH] map_server: Initialise a NodeHandle in main. (#1122) --- map_server/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/map_server/src/main.cpp b/map_server/src/main.cpp index bec3070e3d..d401ff7b30 100644 --- a/map_server/src/main.cpp +++ b/map_server/src/main.cpp @@ -238,6 +238,7 @@ class MapServer int main(int argc, char **argv) { ros::init(argc, argv, "map_server", ros::init_options::AnonymousName); + ros::NodeHandle nh("~"); if(argc != 3 && argc != 2) { ROS_ERROR("%s", USAGE);