11#include < gtest/gtest.h>
2- #include < planning_ros_msgs /VoxelMap.h>
2+ #include < kr_planning_msgs /VoxelMap.h>
33#include < iostream>
44#include < cmath>
55#include " mpl_collision/map_util.h"
@@ -53,7 +53,7 @@ TEST(MapUtilTest, TestIsOutside) {
5353
5454 // Create a base map for the MapUtil object with val_free as the default value
5555 std::vector<signed char > base_map (dim (0 ) * dim (1 ) * dim (2 ),
56- planning_ros_msgs ::VoxelMap::val_free);
56+ kr_planning_msgs ::VoxelMap::val_free);
5757
5858 // Initialize the MapUtil object with the previously created map
5959 test_map.setMap (origin, dim, base_map, resolution);
@@ -101,7 +101,7 @@ TEST(MapUtilTest, TestIsFree) {
101101
102102 // Create a base map for the MapUtil object with val_free as the default value
103103 std::vector<signed char > base_map (dim (0 ) * dim (1 ) * dim (2 ),
104- planning_ros_msgs ::VoxelMap::val_free);
104+ kr_planning_msgs ::VoxelMap::val_free);
105105
106106 vec_Vec3i non_free_voxels;
107107 non_free_voxels.push_back (Vec3i (176 , 91 , 6 ));
@@ -111,7 +111,7 @@ TEST(MapUtilTest, TestIsFree) {
111111 non_free_voxels.push_back (Vec3i (123 , 158 , 16 ));
112112 for (auto &vox : non_free_voxels) {
113113 int idx = vox (0 ) + dim (0 ) * vox (1 ) + dim (0 ) * dim (1 ) * vox (2 );
114- base_map[idx] = planning_ros_msgs ::VoxelMap::val_occ;
114+ base_map[idx] = kr_planning_msgs ::VoxelMap::val_occ;
115115 }
116116
117117 // Initialize the MapUtil object with the previously created map
@@ -166,7 +166,7 @@ TEST(MapUtilTest, TestIsOccupied) {
166166
167167 // Create a base map for the MapUtil object with val_occ as the default value
168168 std::vector<signed char > base_map (dim (0 ) * dim (1 ) * dim (2 ),
169- planning_ros_msgs ::VoxelMap::val_occ);
169+ kr_planning_msgs ::VoxelMap::val_occ);
170170
171171 vec_Vec3i non_occ_voxels;
172172 non_occ_voxels.push_back (Vec3i (176 , 91 , 6 ));
@@ -176,7 +176,7 @@ TEST(MapUtilTest, TestIsOccupied) {
176176 non_occ_voxels.push_back (Vec3i (123 , 158 , 16 ));
177177 for (auto &vox : non_occ_voxels) {
178178 int idx = vox (0 ) + dim (0 ) * vox (1 ) + dim (0 ) * dim (1 ) * vox (2 );
179- base_map[idx] = planning_ros_msgs ::VoxelMap::val_free;
179+ base_map[idx] = kr_planning_msgs ::VoxelMap::val_free;
180180 }
181181
182182 // Initialize the MapUtil object with the previously created map
@@ -232,7 +232,7 @@ TEST(MapUtilTest, TestIsUnknown) {
232232 // Create a base map for the MapUtil object with val_unknown as the
233233 // default value
234234 std::vector<signed char > base_map (dim (0 ) * dim (1 ) * dim (2 ),
235- planning_ros_msgs ::VoxelMap::val_unknown);
235+ kr_planning_msgs ::VoxelMap::val_unknown);
236236
237237 vec_Vec3i non_unknown_voxels;
238238 non_unknown_voxels.push_back (Vec3i (176 , 91 , 6 ));
@@ -242,7 +242,7 @@ TEST(MapUtilTest, TestIsUnknown) {
242242 non_unknown_voxels.push_back (Vec3i (123 , 158 , 16 ));
243243 for (auto &vox : non_unknown_voxels) {
244244 int idx = vox (0 ) + dim (0 ) * vox (1 ) + dim (0 ) * dim (1 ) * vox (2 );
245- base_map[idx] = planning_ros_msgs ::VoxelMap::val_occ;
245+ base_map[idx] = kr_planning_msgs ::VoxelMap::val_occ;
246246 }
247247
248248 // Initialize the MapUtil object with the previously created map
@@ -379,7 +379,7 @@ TEST(MapUtilTest, TestGetCloud) {
379379
380380 // Create a base map for the MapUtil object with val_free as the default value
381381 std::vector<signed char > base_map (dim (0 ) * dim (1 ) * dim (2 ),
382- planning_ros_msgs ::VoxelMap::val_free);
382+ kr_planning_msgs ::VoxelMap::val_free);
383383
384384 vec_Vec3i occ_voxels;
385385 vec_Vec3f occ_cloud;
@@ -399,7 +399,7 @@ TEST(MapUtilTest, TestGetCloud) {
399399 occ_cloud.push_back (Vec3f (26.75 , -31.25 , -2.75 ));
400400 for (auto &vox : occ_voxels) {
401401 int idx = vox (0 ) + dim (0 ) * vox (1 ) + dim (0 ) * dim (1 ) * vox (2 );
402- base_map[idx] = planning_ros_msgs ::VoxelMap::val_occ;
402+ base_map[idx] = kr_planning_msgs ::VoxelMap::val_occ;
403403 }
404404
405405 // Initialize the MapUtil object with the previously created map
@@ -434,7 +434,7 @@ TEST(MapUtilTest, TestGetFreeCloud) {
434434
435435 // Create a base map for the MapUtil object with val_occ as the default value
436436 std::vector<signed char > base_map (dim (0 ) * dim (1 ) * dim (2 ),
437- planning_ros_msgs ::VoxelMap::val_occ);
437+ kr_planning_msgs ::VoxelMap::val_occ);
438438
439439 vec_Vec3i free_voxels;
440440 vec_Vec3f free_cloud;
@@ -454,7 +454,7 @@ TEST(MapUtilTest, TestGetFreeCloud) {
454454 free_cloud.push_back (Vec3f (26.75 , -31.25 , -2.75 ));
455455 for (auto &vox : free_voxels) {
456456 int idx = vox (0 ) + dim (0 ) * vox (1 ) + dim (0 ) * dim (1 ) * vox (2 );
457- base_map[idx] = planning_ros_msgs ::VoxelMap::val_free;
457+ base_map[idx] = kr_planning_msgs ::VoxelMap::val_free;
458458 }
459459
460460 // Initialize the MapUtil object with the previously created map
@@ -489,7 +489,7 @@ TEST(MapUtilTest, TestGetUnkwownCloud) {
489489
490490 // Create a base map for the MapUtil object with val_free as the default value
491491 std::vector<signed char > base_map (dim (0 ) * dim (1 ) * dim (2 ),
492- planning_ros_msgs ::VoxelMap::val_free);
492+ kr_planning_msgs ::VoxelMap::val_free);
493493
494494 vec_Vec3i unknown_voxels;
495495 vec_Vec3f unknown_cloud;
@@ -509,7 +509,7 @@ TEST(MapUtilTest, TestGetUnkwownCloud) {
509509 unknown_cloud.push_back (Vec3f (26.75 , -31.25 , -2.75 ));
510510 for (auto &vox : unknown_voxels) {
511511 int idx = vox (0 ) + dim (0 ) * vox (1 ) + dim (0 ) * dim (1 ) * vox (2 );
512- base_map[idx] = planning_ros_msgs ::VoxelMap::val_unknown;
512+ base_map[idx] = kr_planning_msgs ::VoxelMap::val_unknown;
513513 }
514514
515515 // Initialize the MapUtil object with the previously created map
0 commit comments