hiep update

This commit is contained in:
2025-12-30 10:41:57 +07:00
parent 795c70cb63
commit b19cec9f4d
164 changed files with 57 additions and 7606 deletions

View File

@@ -34,7 +34,7 @@
*
* Author: Eitan Marder-Eppstein
*********************************************************************/
#include <voxel_grid/voxel_grid.h>
#include <robot_voxel_grid/voxel_grid.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
@@ -42,7 +42,7 @@
#include <iostream>
#include <cstdio>
namespace voxel_grid {
namespace robot_voxel_grid {
VoxelGrid::VoxelGrid(unsigned int size_x, unsigned int size_y, unsigned int size_z)
{
size_x_ = size_x;
@@ -203,7 +203,7 @@ namespace voxel_grid {
printf("Layer z = %u:\n",z);
for(unsigned int y = 0; y < size_y_; y++){
for(unsigned int x = 0 ; x < size_x_; x++){
printf((getVoxel(x, y, z)) == voxel_grid::MARKED? "#" : " ");
printf((getVoxel(x, y, z)) == robot_voxel_grid::MARKED? "#" : " ");
}
printf("|\n");
}
@@ -214,7 +214,7 @@ namespace voxel_grid {
printf("Column view:\n");
for(unsigned int y = 0; y < size_y_; y++){
for(unsigned int x = 0 ; x < size_x_; x++){
printf((getVoxelColumn(x, y, 16, 0) == voxel_grid::MARKED)? "#" : " ");
printf((getVoxelColumn(x, y, 16, 0) == robot_voxel_grid::MARKED)? "#" : " ");
}
printf("|\n");
}