From 118fb8f1f6e0eb724304b904fa56deb2cd20f31c Mon Sep 17 00:00:00 2001 From: Jose Luis Blanco-Claraco Date: Mon, 20 Feb 2023 16:38:15 +0100 Subject: [PATCH] Fix wrong warning message format (#3416) * Fix wrong warning message format (Closes #3415) * fix code formatting --- nav2_costmap_2d/plugins/voxel_layer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nav2_costmap_2d/plugins/voxel_layer.cpp b/nav2_costmap_2d/plugins/voxel_layer.cpp index f8c62d06b9..21d6e66901 100644 --- a/nav2_costmap_2d/plugins/voxel_layer.cpp +++ b/nav2_costmap_2d/plugins/voxel_layer.cpp @@ -275,12 +275,13 @@ void VoxelLayer::raytraceFreespace( if (!worldToMap3DFloat(ox, oy, oz, sensor_x, sensor_y, sensor_z)) { RCLCPP_WARN( logger_, - "Sensor origin at (%.2f, %.2f %.2f) is out of map bounds" + "Sensor origin at (%.2f, %.2f %.2f) is out of map bounds " "(%.2f, %.2f, %.2f) to (%.2f, %.2f, %.2f). " "The costmap cannot raytrace for it.", ox, oy, oz, - ox + getSizeInMetersX(), oy + getSizeInMetersY(), oz + getSizeInMetersZ(), - origin_x_, origin_y_, origin_z_); + origin_x_, origin_y_, origin_z_, + origin_x_ + getSizeInMetersX(), origin_y_ + getSizeInMetersY(), + origin_z_ + getSizeInMetersZ()); return; }