Skip to content

Commit

Permalink
Fix map_saver_cli arguments not parsed well (#2362)
Browse files Browse the repository at this point in the history
Fixes #2358
  • Loading branch information
charlielito authored May 24, 2021
1 parent 3c35bb2 commit 3d66437
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 3d66437

Please sign in to comment.