Skip to content

Commit

Permalink
map_server: Initialise a NodeHandle in main. (#1122)
Browse files Browse the repository at this point in the history
  • Loading branch information
bergercookie authored May 26, 2021
1 parent 2489fb3 commit 43832f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions map_server/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 43832f5

Please sign in to comment.