replaced printf -> robot::console

This commit is contained in:
2026-01-10 11:38:19 +07:00
parent b66bd7c751
commit b18aeb39ab
14 changed files with 65 additions and 80 deletions

View File

@@ -25,12 +25,12 @@ char printableCost(unsigned char cost)
void printMap(robot_costmap_2d::Costmap2D& costmap)
{
printf("map:\n");
robot::log_info("map:\n");
for (int i = 0; i < costmap.getSizeInCellsY(); i++){
for (int j = 0; j < costmap.getSizeInCellsX(); j++){
printf("%4d", int(costmap.getCost(j, i)));
robot::log_info("%4d", int(costmap.getCost(j, i)));
}
printf("\n\n");
robot::log_info("\n\n");
}
}