18 #include <gtest/gtest.h> 25 TEST(OctomapConversion, convertOctomapToGridMap)
35 for (
int i = 0; i < 360; i++) {
36 for (
int j = 0; j < 360; j++) {
39 point_on_surface.rotate_IP(0, 0,
DEG2RAD(1.));
53 octomap.
getMetricSize(octo_length.x(), octo_length.y(), octo_length.z());
60 TEST(OctomapConversion, convertOctomapToGridMapWithBoundingBox)
72 for (
int i = 0; i < 360; i++) {
73 for (
int j = 0; j < 360; j++) {
76 point_on_surface.rotate_IP (0,0,
DEG2RAD(1.));
const Length & getLength() const
virtual void getMetricSize(double &x, double &y, double &z)
float & atPosition(const std::string &layer, const Position &position)
static bool fromOctomap(const octomap::OcTree &octomap, const std::string &layer, grid_map::GridMap &gridMap, const grid_map::Position3 *minPoint=nullptr, const grid_map::Position3 *maxPoint=nullptr)
void push_back(float x, float y, float z)
virtual void insertPointCloud(const Pointcloud &scan, const octomap::point3d &sensor_origin, double maxrange=-1., bool lazy_eval=false, bool discretize=false)
Vector3 & rotate_IP(double roll, double pitch, double yaw)
Eigen::Vector3d Position3
#define EXPECT_FLOAT_EQ(a, b)
double getResolution() const
TEST(OctomapConversion, convertOctomapToGridMap)
double getResolution() const