Skip to content

Commit

Permalink
Fix map_saver_cli arguments not parsed well (ros-navigation#2362)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielito authored and ruffsl committed Jul 2, 2021
1 parent 42e404f commit 7f8f1b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nav2_map_server/src/map_saver/main_cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ ARGUMENTS_STATUS parse_arguments(
save_parameters.map_file_name = *it;
break;
case COMMAND_FREE_THRESH:
save_parameters.free_thresh = atoi(it->c_str());
save_parameters.free_thresh = atof(it->c_str());
break;
case COMMAND_OCCUPIED_THRESH:
save_parameters.occupied_thresh = atoi(it->c_str());
save_parameters.occupied_thresh = atof(it->c_str());
break;
case COMMAND_IMAGE_FORMAT:
save_parameters.image_format = *it;
Expand Down

0 comments on commit 7f8f1b3

Please sign in to comment.